MIRACONVERT(1)
π¦ hey bestie, this is MIRACONVERT(1) π¦
okay so real talk: you opened the user commands section of the manual and landed on miraconvert β and honestly? iconic. it's the little tool that takes your assembly and sequencing files and goes "and now you're a different format, slay." that's the whole vibe. converting file types. no cap. let's get into it π
β¨ NAME β¨
miraconvert β convert assembly and sequencing file types. that's it. that's the job. π
πΈ SYNOPSIS πΈ
look at this lil shape. it's giving "I take a lot of flags and I'm not sorry":
miraconvert [-f <fromtype>] [-t <totype> [-t <totype> ...]]
[-aAbCdhimMsuZ] [-cflnNoPqrtvxXyYz {...}] {infile} {outfile} [<totype>
<totype> ...]
so basically: tell it where you're coming from, where you're going to (as many times as you want, queen), sprinkle in your flags, hand it an {infile} and an {outfile}, and optionally yell more <totype>s at the end. π«Ά
π₯ OPTIONS π₯
-f <fromtype>β load this type of project files, where fromtype is:cafβ a complete assembly or single sequences from CAFmafβ a complete assembly or single sequences from CAFfastaβ sequences from a FASTA filefastqβ sequences from a FASTQ filegb[f|k|ff]β sequences from a GenBank filephdβ sequences from a PHD filefofnexpβ sequences in EXP files from file of filenames
-t <totype>β write the sequences/assembly to this type (and yes, you can mention-tmultiple times, go off):aceβ sequences or complete assembly to ACEcafβ sequences or complete assembly to CAFmafβ sequences or complete assembly to MAFsamβ complete assembly to SAMsamnbbβ like above, but leaving out reference (backbones) in mapping assembliesgb[f|k|ff]β sequences or consensus to GenBankgff3β consensus to GFF3wigβ assembly coverage info to wiggle filegcwigβ assembly gc content info to wiggle filefastaβ sequences or consensus to FASTA file (qualities to.qual)fastqβ sequences or consensus to FASTQ fileexpβ sequences or complete assembly to EXP files in directories. Complete assemblies are suited for gap4 import as directed assembly. Note: usingcaf2gapto import into gap4 is recommended thoughtextβ complete assembly to text alignment (only when-fiscaf,maforgbf)htmlβ complete assembly to HTML (only when-fiscaf,maforgbf)tcsβ complete assembly to tcshsnpβ surrounding of SNP tags (SROc,SAOc,SIOc) to HTML (only when-fiscaf,maforgbf)asnpβ analysis of SNP tags (only when-fiscaf,maforgbf)cstatsβ contig statistics file like from MIRA (only when source contains contigs)crlistβ contig read list file like from MIRA (only when source contains contigs)maskedfastaβ reads where sequencing vector is masked out (withX) to FASTA file (qualities to.qual)scafβ sequences or complete assembly to single sequences CAF
-aβ Append to target files instead of rewriting-Aβ Do not Adjust sequence case
when reading formats which define clipping points, and saving to formats which do not have clipping information, miraconvert normally adjusts the case of read sequences: lower case for clipped parts, upper case for unclipped parts of reads. use -A if you do not want this. see also -C.
applies only to files/formats which do not contain contigs.
-bβ Blind data
replaces all bases in reads/contigs with a 'c'
-Cβ perform hard Clip to reads
when reading formats which define clipping points, will save only the unclipped part into the result file.
applies only to files/formats which do not contain contigs.
-dβ Delete gap only columns
when output is contigs: delete columns that are entirely gaps (like after having deleted reads during editing in gap4 or similar)
when output is reads: delete gaps in reads
-Fβ Filter read groups to different files
works only for input files with readgroups (CAF/MAF). 3 (or 4) files generated: one or two for paired, one for unpaired and one for debris reads.
reads in paired file are interlaced by default, use -F twice to create separate files.
-mβ Make contigs (only for-t=caformaf)
encase single reads as contig singlets into the CAF/MAF file.
-n <filename>β when given, selects only reads or contigs given by name in that file.-N <filename>β like-n, but sorts output according to order given in file.-iβ when-nis used, inverts the selection-o <quality>tβ FASTQ quality Offset (only for-f='fastq')
offset of quality values in FASTQ file. Default of 33 loads Sanger/Phred style files, using 0 tries to automatically recognise.
-P <string>β String with MIRA Parameters to be parsed
useful when setting parameters affecting consensus calling like -CO:mrpg etc.
E.g.: -P "454_SETTINGS -CO:mrpg=3"
-q <quality>β set default quality for bases in file types without quality values. furthermore, do not stop if expected quality files are missing (e.g.'.fasta')-R <name>β Rename contigs/singlets/reads with given name string to which a counter is appended.
β οΈ known bug: will create duplicate names if input contains contigs/singlets as well as free reads, i.e. reads not in contigs nor singlets. not cute but there it is π
-S <name>β (name)Scheme for renaming reads, important for paired-ends. only'solexa'is currently supported.-Tβ when converting single reads, Trim/clip away stretches ofNandXand ends of reads. Note: remember to use-Cto also perform a hard clip (e.g. with FASTA as output).-vβ print version number and exit-Y <integer>β Yield. max (clipped/padded) bases to convert.
when used on reads: output will contain first reads of file where length of clipped bases totals at least -Y. when used on contigs: output will contain first contigs of file where length of padded contigs totals at least -Y.
π§ the contig-only switches (read the fine print, bestie)
the following switches work only when input (CAF or MAF) contains contigs. beware: CAF and MAf can also contain just reads. π
-Mβ do not extract contigs (or their consensus), but the sequence of the reads they are composed of.-r [cCqf]β Recalculate consensus and / or consensus quality values and / or SNP feature tags.'c'β recalc cons & cons qualities (with IUPAC)'C'β recalc cons & cons qualities (forcing non-IUPAC)'q'β recalc consensus qualities only'f'β recalc SNP features
Note: only the last of cCq is relevant, f works as a switch and can be combined with cQq (e.g. "-r C -r f")
Note: if the CAF/MAF contains multiple strains, recalculation of cons & cons qualities is forced, you can just influence whether IUPACs are used or not.
-sβ split output into multiple files instead of creating a single file-uβ'fillUp strain genomes'
fill holes in the genome of one strain (N or @) with sequence from a consensus of other strains
takes effect only with -r and -t gbf or fasta/q. In FASTA/Q: bases filled up are in lower case. In GBF: bases filled up are in upper case
-Q <integer>β defines minimum Quality a consensus base of a strain must have, consensus bases below this will be'N'Default:0
only used with -r, and -f is caf/maf and -t is (fasta or gbf)
-V <integer>β defines minimum coVerage a consensus base of a strain must have, bases with coverage below this will be'N'Default:0
only used with -r, and -t is (fasta or gbf)
-x <integer>β minimum contig or unclipped read length
when loading, discard all contigs / reads with a length less than this value. Default: 0 (=switched off)
Note: not applied to reads in contigs!
-X <integer>β similar to-xbut applies only to reads and then to the clipped length.-y <integer>β minimum average contig coverage. when loading, discard all contigs with an average coverage less than this value. Default:1-z <integer>β minimum number of reads in contig. when loading, discard all contigs with a number of reads less than this value. Default:0(=switched off)-l <integer>β when output as text or HTML: number of bases shown in one alignment line. Default:60.-c <character>β when output as text or HTML: character used to pad endgaps. Default:' '(blank)
π EXAMPLES π
here's the tea, copy-paste ready:
miraconvert source.maf dest.sam
miraconvert source.caf dest.fasta wig ace
miraconvert -x 2000 -y 10 source.caf dest.caf
miraconvert -x 40 -C -F -F source.maf .fastq
see? told you it was giving main character energy. π
π SEE ALSO π
a more extensive documentation is provided in the MIRA manual available online at
http://mira-
assembler.sourceforge.net/docs/DefinitiveGuideToMIRA.html
on Debian, this can be installed with the mira-doc package and can then be found at /usr/share/doc/mira-assembler/DefinitiveGuideToMIRA.html. on other systems, you may want to check in /usr/local/share/mira/doc or run "locate DefinitiveGuideToMIRA" to find it locally.
you can also subscribe one of the MIRA mailing lists at
http://www.chevreux.org/mira_mailinglists.html
after subscribing, mail general questions to the MIRA talk mailing list:
mira_talk@freelists.org
π BUGS π
to report bugs or ask for features, please use the ticketing system at:
http://sourceforge.net/projects/mira-assembler/
π AUTHOR π
Bastien Chevreux <bach@chevreux.org>
this manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program.
and that's the whole page bestie!! β¨ this was miraconvert version 5.0.x, dated May 2016, straight out of the Debian universe. go convert something and make it everyone's problem π
π¦π
π¦ where this page comes from
- debian bookworm: mira-assembler 4.9.6-7+b2 Β· GPL-2.0-or-later
- debian trixie: mira-assembler 4.9.6-11 Β· GPL-2.0-or-later
- ubuntu jammy: mira-assembler 4.9.6-5build2 Β· GPL-2.0-or-later
- ubuntu noble: mira-assembler 4.9.6-11 Β· GPL-2.0-or-later
- ubuntu questing: mira-assembler 4.9.6-11build2
- ubuntu resolute: mira-assembler 4.9.6-12 Β· GPL-2.0-or-later
- ubuntu stonking: mira-assembler 4.9.6-12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms