Skip to content

Commit

Permalink
More epitoping revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
William-Gardner-Biotech committed Jul 22, 2024
1 parent e9552ee commit 82980bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ all_cynos
7933_daata
subworkflows/Epitopes/data
subworkflows/Epitopes/ref
subworkflows/Epitopes/Sorted_n_Mapped_BAMs
subworkflows/Epitopes/Variant_calls

# Ignore git files
github
Expand Down
8 changes: 5 additions & 3 deletions subworkflows/Epitopes/epitope.nf
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ process MAP_READS_ON_SIV {
script:
"""
# Map the first timepoint reads against inoc consensus
# QC then map the reads onto our reference
bbduk.sh -Xmx8g in=${merged_reads} out=QC_${merged_reads} minlen=100 hdist=2 ftm=5 maq=10
bbmap.sh -Xmx8g ref=${ref_seq} in=QC_${merged_reads} out=${specimen}_mapped.bam maxindel=100 minid=0.9
Expand Down Expand Up @@ -141,6 +141,7 @@ process MAP_READS_ON_SIV {
"""
}

// TODO make this automated
process EXTRACT_EPITOPES {

publishDir "Epitopes_only_gff", mode: 'symlink'
Expand Down Expand Up @@ -168,7 +169,7 @@ process EXTRACT_EPITOPES {

process SPECIALIZED_VARIANT_CALL {

tag "${specimen} using a -t=${threshold}"
tag "Variant calling: ${specimen} using a -t=${threshold}"

publishDir "Variant_calls", mode: 'Copy'

Expand All @@ -181,7 +182,8 @@ process SPECIALIZED_VARIANT_CALL {

script:
"""
# ivar -m is min depth, -t is varaint threshold, -r ref seq, -p is prefix for output file
# ivar -m is min depth, -t is variant threshold, -r ref seq, -p is prefix for output file
samtools mpileup -f ${params.ref_fasta} ${sorted_bam} | ivar variants -r ${params.ref_fasta} -p ${specimen} -g ${params.ref_GFF} -m 100 -t ${threshold}
"""
}

0 comments on commit 82980bc

Please sign in to comment.