Mercurial > repos > yqiancolumbia > ctk_test
annotate notes.txt @ 0:0475e4175855 draft default tip
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
author | yqiancolumbia |
---|---|
date | Mon, 30 Apr 2018 05:25:11 -0400 |
parents | |
children |
rev | line source |
---|---|
0
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
1 https://galaxyproject.org/admin/data-integration/ |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
2 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
3 su -l galaxy |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
4 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
5 prerequisites |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
6 ------------- |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
7 cd tools |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
8 ln -s /home/yq2139/czlab_src/CTK/ CTK |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
9 ln -s /home/yq2139/czlab_src/ngs/ ngs |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
10 ln -s /home/yq2139/czlab_src/plib/ plib |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
11 rsync -avzP yq2139@intron.c2b2.columbia.edu:/ifs/data/c2b2/cz_lab/tools/fastx_toolkit_0.0.14/ . |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
12 #rsync -avzP yq2139@intron.c2b2.columbia.edu:/ifs/data/c2b2/cz_lab/tools/bwa-0.7.12/ . |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
13 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
14 # IMPORTANT add /home/galaxy/tools/fastx_toolkit_0.0.14/bin to PATH in ~/.bash_profile |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
15 # same for samtools installed later |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
16 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
17 cd /home/galaxy/galaxy_data |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
18 rsync -avzP yq2139@intron.c2b2.columbia.edu:/ifs/data/c2b2/cz_lab/genomes/mm10/bwa/* genomes/mm10/bwa/ |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
19 rsync -avzP yq2139@intron.c2b2.columbia.edu:/ifs/data/c2b2/cz_lab/genomes/hg19/bwa/* genomes/hg19/bwa/ |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
20 rsync -avzP yq2139@intron.c2b2.columbia.edu://ifs/data/c2b2/cz_lab/genomes/mm10/annotation/rmsk.bed /home/galaxy/galaxy_data/genomes/mm10/annotation/ |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
21 rsync -avzP yq2139@intron.c2b2.columbia.edu://ifs/data/c2b2/cz_lab/genomes/mm10/annotation/rmsk.RNA.bed /home/galaxy/galaxy_data/genomes/mm10/annotation/ |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
22 rsync -avzP yq2139@intron.c2b2.columbia.edu://ifs/data/c2b2/cz_lab/genomes/hg19/annotation/rmsk.RNA.bed /home/galaxy/galaxy_data/genomes/hg19/annotation/ |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
23 rsync -avzP yq2139@intron.c2b2.columbia.edu://ifs/data/c2b2/cz_lab/genomes/hg19/annotation/rmsk.bed /home/galaxy/galaxy_data/genomes/hg19/annotation/ |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
24 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
25 mkdir /home/galaxy/galaxy_data/cache |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
26 # to temporarily store cache for fastq2collapse.pl etc. |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
27 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
28 install bwa + bam2sam |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
29 --------------------- |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
30 # ref https://biostar.usegalaxy.org/p/24896/#24919 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
31 # steps: http://intron.c2b2.columbia.edu:8888/ - admin - search tool shed - galaxy main tool shed - bwa - preview and install |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
32 # if uninstall tools, one need to remove corresponding directories, and “reset metadata” in the admin section |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
33 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
34 # modify tool-data/bwa_mem_index.loc : |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
35 hg19bwa hg19 hg19 /home/galaxy/galaxy_data/genomes/hg19/bwa/hg19.fa |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
36 mm10bwa mm10 mm10 /home/galaxy/galaxy_data/genomes/mm10/bwa/mm10.fa |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
37 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
38 # modify integrated_tool_panel.xml to change showing order |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
39 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
40 # add these below (taken from galaxy/config/shed_tool_conf.xml) to config/tool_conf.xml : |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
41 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
42 <tool file="../shed_tools/toolshed.g2.bx.psu.edu/repos/devteam/bwa/4d82cf59895e/bwa/bwa.xml" g |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
43 uid="toolshed.g2.bx.psu.edu/repos/devteam/bwa/bwa/0.7.16.2"> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
44 <tool_shed>toolshed.g2.bx.psu.edu</tool_shed> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
45 <repository_name>bwa</repository_name> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
46 <repository_owner>devteam</repository_owner> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
47 <installed_changeset_revision>4d82cf59895e</installed_changeset_revision> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
48 <id>toolshed.g2.bx.psu.edu/repos/devteam/bwa/bwa/0.7.16.2</id> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
49 <version>0.7.16.2</version> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
50 </tool> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
51 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
52 <tool file="../shed_tools/toolshed.g2.bx.psu.edu/repos/devteam/bam_to_sam/af7c50162f0b/bam_to_sam/bam_to_sam.xml" guid="toolshed.g2.bx.psu.edu/repos/devteam/bam_to_sam/bam_to_sam/2.0"> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
53 <tool_shed>toolshed.g2.bx.psu.edu</tool_shed> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
54 <repository_name>bam_to_sam</repository_name> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
55 <repository_owner>devteam</repository_owner> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
56 <installed_changeset_revision>af7c50162f0b</installed_changeset_revision> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
57 <id>toolshed.g2.bx.psu.edu/repos/devteam/bam_to_sam/bam_to_sam/2.0</id> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
58 <version>2.0</version> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
59 </tool> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
60 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
61 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
62 problems fixed |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
63 --------------- |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
64 # (done) redirect stderr to stdout (my $msgio = $outBedFile eq '-' ? *STDERR : *STDOUT;) : fastq_filter.pl stripBarcode.pl parseAlignment.pl fastq2collapse.pl tag2peak.pl tag2profile.pl CIMS.pl tag2cluster.pl |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
65 # (no need if correctly added environment variables) add a new data type "sai"; ref https://biostar.usegalaxy.org/p/24983/ and https://galaxyproject.org/admin/datatypes/adding-datatypes/ |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
66 step1 add the line below to the datatypes section in ./config/datatypes_conf.xml.sample file: |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
67 <datatype extension="sai" type="galaxy.datatypes.binary:Sai" subclass="True"/> |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
68 step2 In binary.py file, add: |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
69 class Sai( Binary ): |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
70 """Class describing a Sai file""" |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
71 file_ext = "sai" |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
72 In registry.py file, add: |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
73 'sai' : binary.Sai(), |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
74 # (done) bed2annotation.pl problem: "cat: write error: Broken pipe" |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
75 # (done) bedExt.pl problem: /data/galaxy/database/files/000/dataset_241.dat already exists |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
76 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
77 to upload file >2GB |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
78 -------------------- |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
79 #upload the file using rsync or scp to c2b2 server /ifs/scratch/c2b2/cz_lab/web_data/galaxy_tmp |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
80 # Then specify the link to the file in galaxy following the example below: |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
81 # https://zhanglab.c2b2.columbia.edu/data/galaxy_tmp/HepG2.RBFOX2.rep1.R2.fastq.gz |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
82 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
83 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
84 test |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
85 ---- |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
86 cd /home/galaxy/galaxy_test/ctk |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
87 rsync -avzP yq2139@intron.c2b2.columbia.edu://mnt/chromatin/archive_proj/cz2294/CLIP_comparison/BrainRbfox/fastq/Fox1_1.fastq.gz . |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
88 #Fox1_1.fastq.gz is std; Fox1_3.fastq.gz is brdu |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
89 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
90 gzip -cd Fox1_3.fastq.gz |head -1000000 > Fox1_3.1000000lines.raw.fastq |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
91 perl /home/galaxy/tools/CTK/fastq_filter.pl -v -if sanger -f mean:0-38:20 -maxN -1 -of fastq Fox1_3.1000000lines.raw.fastq Fox1_3.1000000lines.filtered.fastq >& fastqfilter.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
92 fastx_clipper -a TCGTATGCCGTCTTCTGCTTG -l 29 -n -v -i Fox1_3.1000000lines.filtered.fastq -o Fox1_3.1000000lines.trim1.fastq >& fastx_clipper.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
93 fastq_quality_trimmer -i Fox1_3.1000000lines.trim1.fastq -v -t 5 -l 29 -o Fox1_3.1000000lines.trim2.fastq >& fastq_quality_trimmer.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
94 perl /home/galaxy/tools/CTK/fastq2collapse.pl Fox1_3.1000000lines.trim2.fastq -v Fox1_3.1000000lines.trim2.c.fastq >& fastq2collapse.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
95 perl /home/galaxy/tools/CTK/stripBarcode.pl -v -format fastq -len 14 Fox1_3.1000000lines.trim2.c.fastq Fox1_3.1000000lines.trim2.c.tag.fastq >& stripBarcode.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
96 /home/galaxy/tools/bwa-0.7.12/bwa aln -t 4 -n 0.06 -q 20 /home/galaxy/galaxy_data/genomes/mm10/bwa/mm10.fa Fox1_3.1000000lines.trim2.c.tag.fastq > Fox1_3.1000000lines.sai |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
97 # can't make log for bwa aln or the sai file is empty |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
98 /home/galaxy/tools/bwa-0.7.12/bwa samse /home/galaxy/galaxy_data/genomes/mm10/bwa/mm10.fa Fox1_3.1000000lines.sai Fox1_3.1000000lines.trim2.c.tag.fastq > Fox1_3.1000000lines.sam |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
99 perl /home/galaxy/tools/CTK/parseAlignment.pl -v --map-qual 1 --min-len 18 --mutation-file Fox1_3.1000000lines.mutation.txt Fox1_3.1000000lines.sam Fox1_3.1000000lines.tag.bed >& parseAlignment.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
100 perl /home/galaxy/tools/CTK/tag2collapse.pl -v -big --random-barcode -EM 30 --seq-error-model alignment -weight --weight-in-name --keep-max-score --keep-tag-name Fox1_3.1000000lines.tag.bed Fox1_3.1000000lines.tag.uniq.bed >& tag2collapse.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
101 perl /home/galaxy/tools/CTK/selectRow.pl -q 3 -f 3 Fox1_3.1000000lines.mutation.txt Fox1_3.1000000lines.tag.uniq.bed > Fox1_3.1000000lines.tag.uniq.mutation.txt |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
102 perl /home/galaxy/tools/CTK/bed2annotation.pl -conf /home/galaxy/tools/CTK/annotation.loc -dbkey mm10 -ss -big -region -v Fox1_3.1000000lines.tag.uniq.bed Fox1_3.1000000lines.tag.uniq.annot.txt >& annot.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
103 perl /home/galaxy/tools/CTK/tag2peak.pl -big -ss -v --valley-seeking -p 0.05 --valley-depth 0.9 --dbkey mm10 --multi-test Fox1_3.1000000lines.tag.uniq.bed Fox1_3.1000000lines.pool.tag.uniq.peak.sig.bed >& tag2peak.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
104 perl /home/galaxy/tools/CTK/tag2profile.pl -v -ss -exact -of bedgraph Fox1_3.1000000lines.tag.uniq.bed Fox1_3.1000000lines.tag.uniq.bedgraph >& bedgraph_tag2profile.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
105 awk '{if($9=="-") {print $0}}' Fox1_3.1000000lines.tag.uniq.mutation.txt | cut -f 1-6 > Fox1_3.1000000lines.tag.uniq.del.bed |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
106 perl /home/galaxy/tools/CTK/CIMS.pl -n 10 -p -v Fox1_3.1000000lines.tag.uniq.bed Fox1_3.1000000lines.tag.uniq.del.bed Fox1_3.1000000lines.tag.uniq.del.CIMS.txt >& cims.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
107 perl /home/galaxy/tools/CTK/removeRow.pl -q 3 -f 3 -v Fox1_3.1000000lines.tag.uniq.bed Fox1_3.1000000lines.tag.uniq.del.bed > Fox1_3.1000000lines.tag.uniq.clean.bed |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
108 perl /home/galaxy/tools/CTK/bedExt.pl -n up -l -1 -r -1 -v Fox1_3.1000000lines.tag.uniq.clean.bed Fox1_3.1000000lines.tag.uniq.clean.trunc.bed >& bedExt.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
109 perl /home/galaxy/tools/CTK/tag2cluster.pl -big -s -maxgap "-1" -of bed -v Fox1_3.1000000lines.tag.uniq.bed Fox1_3.1000000lines.tag.uniq.cluster.0.bed >& tag2cluster.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
110 awk '{if($5>2) {print $0}}' Fox1_3.1000000lines.tag.uniq.cluster.0.bed > Fox1_3.1000000lines.tag.uniq.cluster.bed |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
111 perl /home/galaxy/tools/CTK/tag2peak.pl -big -ss -v --prefix "CITS" -gap 25 -p 0.001 -gene Fox1_3.1000000lines.tag.uniq.cluster.bed Fox1_3.1000000lines.tag.uniq.clean.trunc.bed Fox1_3.1000000lines.tag.uniq.clean.CITS.s30.bed >& CITS.log |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
112 |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
113 check |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
114 ----- |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
115 cd /home/yq2139/mnt_prj/CTK_testing/filtering |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
116 diff <(cat /home/galaxy/galaxy_test/ctk/testing_std/Fox1_1.1000000lines.filtered.fastq) <(head -982696 Fox1_1.fastq)|head |
0475e4175855
planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff
changeset
|
117 diff <(cat /home/galaxy/galaxy_test/ctk/testing_std/Fox1_1.1000000lines.trim.fastq) <(head -895544 Fox1_1.trim.fastq)|head |