-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from yyoshiaki/developmentv1.2
Developmentv1.2
- Loading branch information
Showing
20 changed files
with
226 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.0 | ||
$namespaces: | ||
sbg: 'https://www.sevenbridges.com/' | ||
id: fastq_pair | ||
baseCommand: | ||
- fastq_pair | ||
inputs: | ||
- id: fq1 | ||
type: File | ||
inputBinding: | ||
position: 0 | ||
- id: fq2 | ||
type: File | ||
inputBinding: | ||
position: 0 | ||
outputs: | ||
- id: fq1_paired | ||
type: File | ||
outputBinding: | ||
glob: $(inputs.fq1.basename).paired.fq | ||
- id: fq2_paired | ||
type: File | ||
outputBinding: | ||
glob: $(inputs.fq2.basename).paired.fq | ||
label: fastq_pair | ||
requirements: | ||
- class: DockerRequirement | ||
dockerPull: 'quay.io/biocontainers/fastq-pair:1.0--he1b5a44_1' | ||
- class: InlineJavascriptRequirement | ||
- class: InitialWorkDirRequirement | ||
listing: | ||
- entry: $(inputs.fq1) | ||
writable: true | ||
- entry: $(inputs.fq2) | ||
writable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fq1: | ||
class: File | ||
path: /Users/yyasumizu/bioinformatics/tmp/kz_1.fq | ||
fq2: | ||
class: File | ||
path: /Users/yyasumizu/bioinformatics/tmp/kz_2.fq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM conda/miniconda3 | ||
USER root | ||
|
||
RUN conda install -y -c eclarke komplexity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.0 | ||
$namespaces: | ||
sbg: 'https://www.sevenbridges.com/' | ||
id: kz_filter | ||
baseCommand: | ||
- kz | ||
inputs: | ||
- 'sbg:toolDefaultValue': '0.1' | ||
id: threshold | ||
type: float? | ||
inputBinding: | ||
prefix: '--threshold' | ||
shellQuote: false | ||
position: 0 | ||
- id: input_fq | ||
type: File | ||
- id: output_fq | ||
type: string | ||
outputs: | ||
- id: output | ||
type: File? | ||
outputBinding: | ||
glob: $(inputs.output_fq) | ||
label: kz-filter | ||
arguments: | ||
- prefix: '' | ||
shellQuote: false | ||
position: 0 | ||
valueFrom: '--filter' | ||
requirements: | ||
- class: ShellCommandRequirement | ||
- class: DockerRequirement | ||
dockerPull: 'yyasumizu/ko:0.1' | ||
- class: InlineJavascriptRequirement | ||
stdin: $(inputs.input_fq.path) | ||
stdout: $(inputs.output_fq) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
input_fq: | ||
class: File | ||
path: >- | ||
/home/yyasumizu/media32TB/bioinformatics/practice/VIRTUS/test/ERR3240275/unmapped_1.fq | ||
output_fq: unmapped_kz0.1.fq | ||
threshold: 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
samtools view -h ${1} | \ | ||
grep -v "AAAAAAAAAAAAAAAAAAAA" | grep -v "TTTTTTTTTTTTTTTTTTTT" | \ | ||
grep -v "AAAAAAAAAAAAAAAAAAAA" | grep -v "TTTTTTTTTTTTTTTTTTTT" | grep -v "TGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTG" | \ | ||
samtools view -bS - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kz -k 2 < unmapped_1.fq > kz_1.txt | ||
kz -k 2 < unmapped_2.fq > kz_2.txt | ||
|
||
SCRIPT_DIR=$(cd $(dirname $0); pwd) | ||
python3 $SCRIPT_DIR/kz_list_PE.py | ||
|
||
list=(`cat kz_filter_list_1.txt` `cat kz_filter_list_2.txt`) | ||
|
||
samtools view virusAligned.filtered.sortedByCoord.out.bam | egrep -v "`echo $(IFS="|"; echo "${list[*]}")`" | cut -f3 | sort | uniq -c > virus_counts_kz.txt | ||
samtools view virusAligned.filtered.sortedByCoord.out.bam | egrep "`echo $(IFS="|"; echo "${list[*]}")`" > kz_removed.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
kz -k 2 < unmapped.fq > kz.txt | ||
|
||
SCRIPT_DIR=$(cd $(dirname $0); pwd) | ||
python3 $SCRIPT_DIR/kz_list_SE.py | ||
|
||
list=(`cat kz_filter_list.txt`) | ||
samtools view virusAligned.filtered.sortedByCoord.out.bam | egrep -v "`echo $(IFS="|"; echo "${list[*]}")`" | cut -f3 | sort | uniq -c > virus_counts_kz.txt | ||
samtools view virusAligned.filtered.sortedByCoord.out.bam | egrep "`echo $(IFS="|"; echo "${list[*]}")`" > kz_removed.txt |
Oops, something went wrong.