Mercurial > repos > yating-l > hubarchivecreator
comparison hubArchiveCreator.py @ 54:4a58094b051e draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 754b3f960221a68b90f9cddd98a1c3dd324d4d4e-dirty
author | yating-l |
---|---|
date | Tue, 16 May 2017 18:09:00 -0400 |
parents | 364b8db8de17 |
children | ba9997c847dc |
comparison
equal
deleted
inserted
replaced
53:44059c9e7c02 | 54:4a58094b051e |
---|---|
18 # Internal dependencies | 18 # Internal dependencies |
19 from Bam import Bam | 19 from Bam import Bam |
20 from BedSimpleRepeats import BedSimpleRepeats | 20 from BedSimpleRepeats import BedSimpleRepeats |
21 from BedSpliceJunctions import BedSpliceJunctions | 21 from BedSpliceJunctions import BedSpliceJunctions |
22 from Bed import Bed | 22 from Bed import Bed |
23 from cytoBand import cytoBand | |
23 from BigWig import BigWig | 24 from BigWig import BigWig |
24 from util.Fasta import Fasta | 25 from util.Fasta import Fasta |
25 from util.Filters import TraceBackFormatter | 26 from util.Filters import TraceBackFormatter |
26 from Gff3 import Gff3 | 27 from Gff3 import Gff3 |
27 from Gtf import Gtf | 28 from Gtf import Gtf |
53 parser.add_argument('--bedSpliceJunctions', action='append', help='Bed12+1 format, using spliceJunctions.as') | 54 parser.add_argument('--bedSpliceJunctions', action='append', help='Bed12+1 format, using spliceJunctions.as') |
54 | 55 |
55 # Generic Bed (Blastx transformed to bed) | 56 # Generic Bed (Blastx transformed to bed) |
56 parser.add_argument('--bed', action='append', help='Bed generic format') | 57 parser.add_argument('--bed', action='append', help='Bed generic format') |
57 | 58 |
59 #cytoBandIdeo | |
60 parser.add_argument('--cytoBand', action='append', help='Cytoband Track, using cytoBandIdeo.as') | |
61 | |
58 # BigPsl (blat alignment) | 62 # BigPsl (blat alignment) |
59 parser.add_argument('--bigpsl', action='append', help='bigPsl format, using bigPsl.as') | 63 parser.add_argument('--bigpsl', action='append', help='bigPsl format, using bigPsl.as') |
60 | 64 |
61 # Bed12+12 (tblastn alignment) | 65 # Bed12+12 (tblastn alignment) |
62 parser.add_argument('--bedBlastAlignments', action='append', help='Bed12+12 format, using bigPsl.as') | 66 parser.add_argument('--bedBlastAlignments', action='append', help='Bed12+12 format, using bigPsl.as') |
122 # These inputs are populated in the Galaxy Wrapper xml and are in this format: | 126 # These inputs are populated in the Galaxy Wrapper xml and are in this format: |
123 # ARRAY[DICT{FILE_PATH: DICT{NAME: NAME_VALUE, EXTRA_DATA: EXTRA_DATA_VALUE}}] | 127 # ARRAY[DICT{FILE_PATH: DICT{NAME: NAME_VALUE, EXTRA_DATA: EXTRA_DATA_VALUE}}] |
124 # EXTRA_DATA could be anything, for example the index of a BAM => {"index", FILE_PATH} | 128 # EXTRA_DATA could be anything, for example the index of a BAM => {"index", FILE_PATH} |
125 array_inputs_bam = args.bam | 129 array_inputs_bam = args.bam |
126 array_inputs_bed_generic = args.bed | 130 array_inputs_bed_generic = args.bed |
131 array_inputs_bed_cytoBand = args.cytoBand | |
127 array_inputs_bed_simple_repeats = args.bedSimpleRepeats | 132 array_inputs_bed_simple_repeats = args.bedSimpleRepeats |
128 array_inputs_bed_splice_junctions = args.bedSpliceJunctions | 133 array_inputs_bed_splice_junctions = args.bedSpliceJunctions |
129 array_inputs_bigwig = args.bigwig | 134 array_inputs_bigwig = args.bigwig |
130 array_inputs_gff3 = args.gff3 | 135 array_inputs_gff3 = args.gff3 |
131 array_inputs_gtf = args.gtf | 136 array_inputs_gtf = args.gtf |
150 all_datatype_dictionary = {} | 155 all_datatype_dictionary = {} |
151 | 156 |
152 for (inputs, datatype_class) in [ | 157 for (inputs, datatype_class) in [ |
153 (array_inputs_bam, Bam), | 158 (array_inputs_bam, Bam), |
154 (array_inputs_bed_generic, Bed), | 159 (array_inputs_bed_generic, Bed), |
160 (array_inputs_bed_cytoBand, cytoBand), | |
155 (array_inputs_bigwig, BigWig), | 161 (array_inputs_bigwig, BigWig), |
156 (array_inputs_bed_simple_repeats, BedSimpleRepeats), | 162 (array_inputs_bed_simple_repeats, BedSimpleRepeats), |
157 (array_inputs_bed_splice_junctions, BedSpliceJunctions), | 163 (array_inputs_bed_splice_junctions, BedSpliceJunctions), |
158 (array_inputs_gff3, Gff3), | 164 (array_inputs_gff3, Gff3), |
159 (array_inputs_gtf, Gtf), | 165 (array_inputs_gtf, Gtf), |