Mercurial > repos > bgruening > jbrowse2
annotate convertMAF.sh @ 0:53c2be00bb6f draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
author | bgruening |
---|---|
date | Wed, 05 Jun 2024 08:15:49 +0000 |
parents | |
children |
rev | line source |
---|---|
0
53c2be00bb6f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
bgruening
parents:
diff
changeset
|
1 #!/usr/bin/env bash |
53c2be00bb6f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
bgruening
parents:
diff
changeset
|
2 # https://github.com/cmdcolin/jbrowse-plugin-mafviewer/blob/master/bin/convert.sh |
53c2be00bb6f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
bgruening
parents:
diff
changeset
|
3 # maf2bed modified to work right as a python script by ross lazarus in desperation |
53c2be00bb6f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
bgruening
parents:
diff
changeset
|
4 # MAF file must contain the species name and chromosome name |
53c2be00bb6f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
bgruening
parents:
diff
changeset
|
5 # e.g. hg38.chr1 in the sequence identifiers with hg38 passed in as $2 |
53c2be00bb6f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
bgruening
parents:
diff
changeset
|
6 python $3/maf2bed.py $2 < $1 | sort -k1,1 -k2,2n > $4.sorted.bed |
53c2be00bb6f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
bgruening
parents:
diff
changeset
|
7 bgzip -c $4.sorted.bed > $4.sorted.bed.gz |
53c2be00bb6f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 0a86c88a95b0d1cc49d84544136de6556b95320f
bgruening
parents:
diff
changeset
|
8 tabix -p bed $4.sorted.bed.gz |