Mercurial > repos > fubar > jbrowse2
annotate convertMAF.sh @ 99:990291e918c7 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit a1537aea75fc902d0e38c0b7c698830a939648b1-dirty
author | fubar |
---|---|
date | Fri, 21 Jun 2024 23:34:31 +0000 |
parents | e7a6f7a7148d |
children |
rev | line source |
---|---|
0
d78175596286
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit cd77dffaad652cfb75b98bde5231beaa6d63cd5b-dirty
fubar
parents:
diff
changeset
|
1 #!/usr/bin/env bash |
d78175596286
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit cd77dffaad652cfb75b98bde5231beaa6d63cd5b-dirty
fubar
parents:
diff
changeset
|
2 # https://github.com/cmdcolin/jbrowse-plugin-mafviewer/blob/master/bin/convert.sh |
61
e7a6f7a7148d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 6dde5ad41d63730085116ab2c9a9d3e500a760e4-dirty
fubar
parents:
57
diff
changeset
|
3 # maf2bed modified to work right as a python script by ross lazarus in desperation |
0
d78175596286
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit cd77dffaad652cfb75b98bde5231beaa6d63cd5b-dirty
fubar
parents:
diff
changeset
|
4 # MAF file must contain the species name and chromosome name |
61
e7a6f7a7148d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 6dde5ad41d63730085116ab2c9a9d3e500a760e4-dirty
fubar
parents:
57
diff
changeset
|
5 # e.g. hg38.chr1 in the sequence identifiers with hg38 passed in as $2 |
e7a6f7a7148d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 6dde5ad41d63730085116ab2c9a9d3e500a760e4-dirty
fubar
parents:
57
diff
changeset
|
6 python $3/maf2bed.py $2 < $1 | sort -k1,1 -k2,2n > $4.sorted.bed |
57
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
0
diff
changeset
|
7 bgzip -c $4.sorted.bed > $4.sorted.bed.gz |
0
d78175596286
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit cd77dffaad652cfb75b98bde5231beaa6d63cd5b-dirty
fubar
parents:
diff
changeset
|
8 tabix -p bed $4.sorted.bed.gz |