Skip to content

Commit

Permalink
Merge pull request #205 from theiagen/im-revert-ncbi-scrub
Browse files Browse the repository at this point in the history
revert ncbi scrub changes to commid id 4e0fa54
  • Loading branch information
kapsakcj authored Oct 2, 2023
2 parents 64d5810 + 1a619b4 commit 801baa2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tasks/quality_control/task_ncbi_scrub.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ task ncbi_scrub_pe {
fi

# dehost reads
/opt/scrubber/scripts/scrub.sh -i ${read1_unzip} |& tail -n1 | awk -F" " '{print $1}' > FWD_SPOTS_REMOVED
/opt/scrubber/scripts/scrub.sh -n ${read1_unzip} |& tail -n1 | awk -F" " '{print $1}' > FWD_SPOTS_REMOVED

# gzip dehosted reads
gzip ${read1_unzip}.clean -c > ~{samplename}_R1_dehosted.fastq.gz
Expand All @@ -40,7 +40,7 @@ task ncbi_scrub_pe {
fi

# dehost reads
/opt/scrubber/scripts/scrub.sh -i ${read2_unzip} |& tail -n1 | awk -F" " '{print $1}' > REV_SPOTS_REMOVED
/opt/scrubber/scripts/scrub.sh -n ${read2_unzip} |& tail -n1 | awk -F" " '{print $1}' > REV_SPOTS_REMOVED

# gzip dehosted reads
gzip ${read2_unzip}.clean -c > ~{samplename}_R2_dehosted.fastq.gz
Expand All @@ -51,7 +51,6 @@ task ncbi_scrub_pe {
Int read1_human_spots_removed = read_int("FWD_SPOTS_REMOVED")
Int read2_human_spots_removed = read_int("REV_SPOTS_REMOVED")
String ncbi_scrub_docker = docker

}
runtime {
docker: "~{docker}"
Expand All @@ -68,7 +67,7 @@ task ncbi_scrub_se {
input {
File read1
String samplename
String docker = "us-docker.pkg.dev/general-theiagen/ncbi/sra-human-scrubber:2.1.0"
String docker = "us-docker.pkg.dev/general-theiagen/ncbi/sra-human-scrubber:1.0.2021-05-05"
Int disk_size = 100
}
String r1_filename = basename(read1)
Expand All @@ -86,7 +85,7 @@ task ncbi_scrub_se {
fi

# dehost reads
/opt/scrubber/scripts/scrub.sh -i ${read1_unzip} |& tail -n1 | awk -F" " '{print $1}' > FWD_SPOTS_REMOVED
/opt/scrubber/scripts/scrub.sh -n ${read1_unzip} |& tail -n1 | awk -F" " '{print $1}' > FWD_SPOTS_REMOVED

# gzip dehosted reads
gzip ${read1_unzip}.clean -c > ~{samplename}_R1_dehosted.fastq.gz
Expand Down

0 comments on commit 801baa2

Please sign in to comment.