Mercurial > repos > drosofff > repenrich
annotate test-data/tool_wrapper.sh @ 6:77807fc5d609 draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit e9282183531bacbb4bbe2d6e53258f6e0ad0bc34
author | drosofff |
---|---|
date | Wed, 31 May 2017 13:09:15 -0400 |
parents | 54a3f3a195d6 |
children |
rev | line source |
---|---|
1
54a3f3a195d6
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit 114b47cc624e39b4f485c8623458fc98494c564d
drosofff
parents:
0
diff
changeset
|
1 input_base=Samp |
54a3f3a195d6
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit 114b47cc624e39b4f485c8623458fc98494c564d
drosofff
parents:
0
diff
changeset
|
2 baseReference=chrM |
0
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
3 |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
4 bowtie-build ${baseReference}.fa ${baseReference} |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
5 |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
6 python RepEnrich_setup.py ${baseReference}_repeatmasker.txt ${baseReference}.fa \ |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
7 setup_folder_${baseReference} |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
8 |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
9 bowtie $baseReference -p 16 -t -m 1 -S --max ${input_base}_multimap.fastq \ |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
10 ${input_base}.fastq ${input_base}_unique.sam |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
11 |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
12 samtools view -bS ${input_base}_unique.sam > ${input_base}_unique.bam |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
13 samtools sort ${input_base}_unique.bam ${input_base}_unique_sorted |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
14 mv ${input_base}_unique_sorted.bam ${input_base}_unique.bam |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
15 samtools index ${input_base}_unique.bam |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
16 rm ${input_base}_unique.sam |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
17 |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
18 python RepEnrich.py ${baseReference}_repeatmasker.txt ${input_base} ${input_base} \ |
1435d142041b
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit d5ebd581fa3a22ca61ce07a31c01bb70610fbcf5
drosofff
parents:
diff
changeset
|
19 setup_folder_${baseReference} ${input_base}_multimap.fastq ${input_base}_unique.bam --cpus 16 |