7.2. Reference converters
7.2.1. Summary
|
|
|
Convert PDB to FAA format |
7.2.2. All converters documentation
Convert ABI format to FASTA format
- class bioconvert.abi2fasta.ABI2FASTA(infile, outfile, *args, **kargs)[source]
Convert ABI file to FASTQ file
ABI files are created by ABI sequencing machine and includes PHRED quality scores for base calls. This allows the creation of FastA files.
Method implemented is based on BioPython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert ABI format to FASTQ format
- class bioconvert.abi2fastq.ABI2FASTQ(infile, outfile, *args, **kargs)[source]
Convert ABI file to FASTQ file
ABI files are created by ABI sequencing machine and includes PHRED quality scores for base calls. This allows the creation of FastQ files.
Method implemented is based on BioPython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert ABI format to QUAL format
- class bioconvert.abi2qual.ABI2QUAL(infile, outfile, *args, **kargs)[source]
-
ABI files are created by ABI sequencing machine and includes PHRED quality scores for base calls. This allows the creation of QUAL files.
Method implemented is based on BioPython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert BAM format to BEDGRAPH format
- class bioconvert.bam2bedgraph.BAM2BEDGRAPH(infile, outfile)[source]
Convert sorted BAM file into BEDGRAPH file
Compute the coverage (depth) in BEDGRAPH. Regions with zero coverage are also reported.
Note that this BEDGRAPH format is of the form:
chrom chromStart chromEnd dataValue
Note that consecutive positions with same values are compressed.
chr1 0 75 0 chr1 75 176 1 chr1 176 177 2
Warning
the BAM file must be sorted. This can be achieved with bamtools.
Methods available are based on bedtools [BEDTOOLS] and mosdepth [MOSDEPTH].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bedtools'
Default value
Convert BAM format to COV format
- class bioconvert.bam2cov.BAM2COV(infile, outfile)[source]
Convert sorted BAM file into COV file
Note that the COV format is of the form:
chr1 1 0 chr1 2 0 chr1 3 0 chr1 4 0 chr1 5 0
that is contig name, position, coverage.
Warning
the BAM file must be sorted. This can be achieved with bamtools using bamtools sort -in INPUT.bam
Methods available are based on samtools [SAMTOOLS] or bedtools [BEDTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Convert BAM file to BIGWIG format
- class bioconvert.bam2bigwig.BAM2BIGWIG(infile, outfile, *args, **kargs)[source]
Convert BAM file to BIGWIG file
Convert BAM into a binary version of WIG format.
Methods are base on bamCoverage [DEEPTOOLS] and bedGraphToBigWig from wiggletools [WIGGLETOOLS]. Wiggletools method requires an extra argument (–chrom-sizes) therefore default one is bamCoverage for now.
Moreover, the two methods do not return exactly the same info!
You can check this by using bioconvert to convert into a human readable file such as wiggle. We will use the bamCoverage as our default conversion.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bamCoverage'
Default value
Convert BAM file to CRAM format
- class bioconvert.bam2cram.BAM2CRAM(infile, outfile, *args, **kargs)[source]
-
The conversion requires the reference corresponding to the input file It can be provided as an argument with the standalone (--reference). Otherwise, users are asked to provide it.
Methods available are based on samtools [SAMTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
Convert BAM format to FASTA format
- class bioconvert.bam2fasta.BAM2FASTA(infile, outfile)[source]
Convert sorted BAM file into FASTA file
Methods available are based on samtools [SAMTOOLS] or bedtools [BEDTOOLS].
Warning
Using the bedtools method, the R1 and R2 reads must be next to each other so that the reads are sorted similarly
Warning
there is no guarantee that the R1/R2 output file are sorted similarly in paired-end case due to supp and second reads
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
Convert BAM format to FASTQ foarmat
- class bioconvert.bam2fastq.BAM2FASTQ(infile, outfile)[source]
Convert sorted BAM file into FASTQ file
Methods available are based on samtools [SAMTOOLS] or bedtools [BEDTOOLS].
Warning
Using the bedtools method, the R1 and R2 reads must be next to each other so that the reads are sorted similarly
Warning
there is no guarantee that the R1/R2 output file are sorted similarly in paired-end case due to supp and second reads
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
Convert BAM format to JSON format
- class bioconvert.bam2json.BAM2JSON(infile, outfile)[source]
Convert BAM format to JSON file
Methods available are based on bamtools [BAMTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bamtools'
Default value
Convert SAM file to BAM format
- class bioconvert.bam2sam.BAM2SAM(infile, outfile, *args, **kargs)[source]
-
Methods available are based on samtools [SAMTOOLS] , sam-to-bam [SAMTOBAM] , sambamba [SAMBAMBA] and pysam [PYSAM].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'sambamba'
default value
- _method_sambamba(*args, **kwargs)[source]
Here we use the Sambamba tool. This is the default method because it is the fastest.
Convert BAM file to TSV format
- class bioconvert.bam2tsv.BAM2TSV(infile, outfile, *args, **kargs)[source]
Convert sorted BAM file into TSV stats
This is not a conversion per se but the extraction of BAM statistics saved into a TSV format. The 4 columns of the TSV file are:
Reference sequence name, Sequence length,Mapped reads, Unmapped reads
Methods are based on samtools [SAMTOOLS] and pysam [PYSAM].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
Methods are based on samtools [SAMTOOLS] and pysam [PYSAM].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
- class bioconvert.bam2wiggle.BAM2WIGGLE(infile, outfile)[source]
Convert sorted BAM file into WIGGLE file
Methods available are based on wiggletools [WIGGLETOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Convert BCF file to VCF format
- class bioconvert.bcf2vcf.BCF2VCF(infile, outfile, *args, **kargs)[source]
-
Methods available are based on bcftools [BCFTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Convert BCF format to WIGGLE format
- class bioconvert.bcf2wiggle.BCF2WIGGLE(infile, outfile)[source]
Convert sorted BCF file into WIGGLE file
Methods available are based on wiggletools [WIGGLETOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'wiggletools'
Default value
Convert BED format to WIGGLE format
- class bioconvert.bed2wiggle.BED2WIGGLE(infile, outfile)[source]
Convert sorted BED file into WIGGLE file
Methods available are based on wiggletools [WIGGLETOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Convert BEDGRAPH file to COV format
- class bioconvert.bedgraph2cov.BEDGRAPH2COV(infile, outfile)[source]
Converts a BEDGRAPH (4 cols) to COV format (3 cols)
Input example:
chr19 49302000 4930205 -1 chr19 49302005 4930210 1
becomes:
chr19 4930201 -1 chr19 4930202 -1 chr19 4930203 -1 chr19 4930204 -1 chr19 4930205 -1 chr19 4930206 1 chr19 4930207 1 chr19 4930208 1 chr19 4930209 1 chr19 4930210 1
Method available is a Bioconvert implementation (Python).
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value
Convert BEDGRAPH to BIGWIG format
- class bioconvert.bedgraph2bigwig.BEDGRAPH2BIGWIG(infile, outfile)[source]
Converts BEDGRAPH format to BIGWIG format
Conversion is based on bedGraph2BigWig tool. Note that an argument –chrom-sizes is required.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'ucsc'
Default value
Convert BEDGRAPH format to WIGGLE format
- class bioconvert.bedgraph2wiggle.BEDGRAPH2WIGGLE(infile, outfile)[source]
Convert sorted BEDGRAPH file into WIGGLE file
Methods available are based on wiggletools [WIGGLETOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'wiggletools'
Default value
Convert BIGBED format to WIGGLE format
- class bioconvert.bigbed2wiggle.BIGBED2WIGGLE(infile, outfile)[source]
Convert sorted BIGBED file into WIGGLE file
Methods available are based on wiggletools [WIGGLETOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'wiggletools'
Default value
Convert BIGBED format to BED format
- class bioconvert.bigbed2bed.BIGBED2BED(infile, outfile)[source]
Converts a sequence alignment in BIGBED format to BED4 format
Methods available are based on pybigwig [DEEPTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pybigwig'
Default value
Convert BIGWIG to BEDGRAPH format
- class bioconvert.bigwig2bedgraph.BIGWIG2BEDGRAPH(infile, outfile)[source]
Converts a sequence alignment in BIGWIG format to BEDGRAPH format
Conversion is based on ucsc bigWigToBedGraph tool or pybigwig (default) [DEEPTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pybigwig'
Default value
- _method_pybigwig(*args, **kwargs)[source]
In this method we use the python extension written in C, pyBigWig.
Convert BIGWIG format to WIGGLE format
- class bioconvert.bigwig2wiggle.BIGWIG2WIGGLE(infile, outfile)[source]
Convert sorted BIGWIG file into WIGGLE file
Methods available are based on pybigwig [DEEPTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'wiggletools'
Default value
Convert BPLINK to PLINK format
- class bioconvert.bplink2plink.BPLINK2PLINK(infile, outfile=None, *args, **kwargs)[source]
Converts a genotype dataset bed+bim+fam in BPLINK format to ped+map PLINK format.
Conversion is based on plink [PLINK] executable.
Warning
plink takes several inputs and outputs and does not need extensions. What is required is a prefix. Bioconvert usage is therefore:
bioconvert bplink2plink plink_toy
Since there is no extension, you must be explicit by providing the conversion name (bplink2plink). This command will search for 3 input files plink_toy.bed, plink_toy.bim and plink_toy.fam. It will then create two output files named plink_toy.ped and plink_toy.map
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'plink'
Default value
- class bioconvert.bz22gz.BZ22GZ(infile, outfile, *args, **kargs)[source]
-
Methods based on bunzip2 or zlib/bz2 Python libraries.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bz2_gz'
Default value
Convert CLUSTAL to FASTA format
- class bioconvert.clustal2fasta.CLUSTAL2FASTA(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from CLUSTAL to FASTA format.
Methods available are based on squizz [SQUIZZ] or biopython [BIOPYTHON], and goalign [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert CLUSTAL to PHYLIP format
- class bioconvert.clustal2phylip.CLUSTAL2PHYLIP(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from CLUSTAL format to PHYLIP format.
Methods available are based on squizz [SQUIZZ] or biopython [BIOPYTHON], and goalign [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert CLUSTAL to STOCKHOLM format
- class bioconvert.clustal2stockholm.CLUSTAL2STOCKHOLM(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from CLUSTAL format to STOCKHOLM format.
Methods available are based on squizz [SQUIZZ] or biopython [BIOPYTHON], and goalign [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert CRAM file to BAM format
- class bioconvert.cram2bam.CRAM2BAM(infile, outfile, *args, **kargs)[source]
-
The conversion requires the reference corresponding to the input file It can be provided as an argument with the standalone (--reference). Otherwise, users are asked to provide it.
Methods available are based on samtools [SAMTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
Convert CRAM file to FASTQ format
- class bioconvert.cram2fasta.CRAM2FASTA(infile, outfile, *args, **kargs)[source]
Convert CRAM file to FASTA file
Methods available are based on samtools [SAMTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
Convert CRAM file to FASTQ format
- class bioconvert.cram2fastq.CRAM2FASTQ(infile, outfile, *args, **kargs)[source]
Convert CRAM file to FASTQ file
Methods available are based on samtools [SAMTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
Convert CRAM file to SAM format
- class bioconvert.cram2sam.CRAM2SAM(infile, outfile, *args, **kargs)[source]
-
The conversion requires the reference corresponding to the input file It can be provided as an argument with the standalone (--reference). Otherwise, users are asked to provide it.
Methods available are based on samtools [SAMTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
Convert CSV format to TSV format
- class bioconvert.csv2tsv.CSV2TSV(infile, outfile)[source]
Convert CSV file into TSV file
Available methods: Python, Pandas
Methods available are based on python or Pandas [PANDAS].
See also
TSV2CSV- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value
- _method_pandas(in_sep=',', out_sep='\t', line_terminator='\n', *args, **kwargs)[source]
- _method_python(in_sep=',', out_sep='\t', line_terminator='\n', *args, **kwargs)[source]
- class bioconvert.csv2xls.CSV2XLS(infile, outfile, *args, **kargs)[source]
-
Methods available are based on python, pyexcel [PYEXCEL], or pandas [PANDAS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pandas'
Default value
- _method_pandas(in_sep=',', sheet_name='Sheet 1', *args, **kwargs)[source]
Convert a compressed FASTQ from DSRC to FASTQ format
- class bioconvert.dsrc2gz.DSRC2GZ(infile, outfile, *args, **kargs)[source]
Convert a compressed FASTQ from DSRC to GZ format
Methods available are based on dsrc [DSRC] and pigz [PIGZ].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'dsrcpigz'
Default value
- _method_dsrcpigz(*args, **kwargs)[source]
Do the conversion dsrc -> GZ. Method that uses pigz and dsrc.
pigz documentation dsrc documentation
option threadig does not work with the dsrc version from conda so we do not add the -t threads option
Convert EMBL file to FASTA format
- class bioconvert.embl2fasta.EMBL2FASTA(infile, outfile, *args, **kargs)[source]
Convert EMBL file to FASTA file
Methods available are based on squizz [SQUIZZ] or biopython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert EMBL file to GENBANK format
- class bioconvert.embl2genbank.EMBL2GENBANK(infile, outfile, *args, **kargs)[source]
Convert EMBL file to GENBANK file
Methods available are based on squizz [SQUIZZ] and biopython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert FASTA format to FASTQ format
- class bioconvert.fasta_qual2fastq.FASTA_QUAL2FASTQ(infile, outfile)[source]
Convert FASTA and QUAL back into a FASTQ file
Method based on pysam [PYSAM].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkinstall_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_IO_arguments
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkinstall_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_IO_arguments
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pysam'
Default value
Convert FASTA to CLUSTAL format
- class bioconvert.fasta2clustal.FASTA2CLUSTAL(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from FASTA to CLUSTAL format
Methods available are based on squizz [SQUIZZ] or biopython [BIOPYTHON], and goalign [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
- _method_biopython(*args, **kwargs)[source]
Convert FASTA interleaved file in CLUSTAL format using biopython.
Convert FASTA format to FAA format
- class bioconvert.fasta2faa.FASTA2FAA(infile, outfile)[source]
Methods available is a bioconvert implementation.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bioconvert'
Default value
Convert FASTA format to FASTQ format
- class bioconvert.fasta2fastq.FASTA2FASTQ(infile, outfile)[source]
Methods available are based on pysam [PYSAM].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pysam'
Default value
Convert FASTA to GENBANK format
- class bioconvert.fasta2genbank.FASTA2GENBANK(infile, outfile, *args, **kargs)[source]
Convert FASTA file to GENBANK file
Methods available are based on squizz [SQUIZZ] or biopython [BIOPYTHON] or Bioconvert pure implementation (default).
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bioconvert'
Default value
- class bioconvert.fasta2nexus.FASTA2NEXUS(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment in FASTA format to NEXUS format
Methods available are based on squizz [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'goalign'
Default value
Convert FASTA to PHYLIP format
- class bioconvert.fasta2phylip.FASTA2PHYLIP(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment in FASTA format to PHYLIP format
Conversion is based on Bio Python modules
Methods available are based on squizz [SQUIZZ] or biopython [BIOPYTHON] or goalign [GOALIGN]. Squizz is the default (https://github.com/bioconvert/bioconvert/issues/149). Phylip created is a strict phylip that is with 10 characters on the first column.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert FASTA to TWOBIT format
- class bioconvert.fasta2twobit.FASTA2TWOBIT(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment in FASTA format to TWOBIT format
Methods available are based on UCSC faToTwoBit [UCSC].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'ucsc'
default value
- class bioconvert.fastq2fasta.FASTQ2FASTA(infile, outfile)[source]
-
This converter has lots of methods. Some of them have also been removed or commented with time. BioPython for instance is commented due to poo performance compared to others. Does not mean that it is not to be considered. Performances are decrease due to lot of sanity checks.
Similarly, bioawk and python_external method are commented because redundant with other equivalent method.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
just_name(record)This method takes a Biopython sequence record record and returns its name.
readfq(fp)unwrap_fasta(infile, outfile[, strip_comment])This method reads fasta sequences from infile and writes them unwrapped in outfile.
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
just_name(record)This method takes a Biopython sequence record record and returns its name.
readfq(fp)unwrap_fasta(infile, outfile[, strip_comment])This method reads fasta sequences from infile and writes them unwrapped in outfile.
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bioconvert'
default value
- _method_awk(*args, **kwargs)[source]
Here we are using the awk method.
Note
Another method with awk has been tested but is less efficient. Here is which one was used:
box.awkcmd = """awk '{{if(NR%4==1) {{printf(">%s\n",substr($0,2));}} else if(NR%4==2) print;}}' """
- _method_bioconvert(*args, **kwargs)[source]
Bioconvert implementation in pure Python. This is the default method because it is the fastest.
- _method_mappy(*args, **kwargs)[source]
This method provides a fast and accurate C program to align genomic sequences and transcribe nucleotides.
- _method_mawk(*args, **kwargs)[source]
This variant of the awk method uses mawk, a lighter and faster implementation of awk.
Note
Other methods with mawk have been tested but are less efficient. Here are which ones were used:
mawkcmd_v2 = """mawk '{{if(NR%4==1) {{printf(">%s\n",substr($0,2));}} else if(NR%4==2) print;}}' """ mawkcmd_v3 = """mawk '(++n<=0){next}(n!=1){print;n=-2;next}{print">"substr($0,2)}'"""
- _method_perl(*args, **kwargs)[source]
This method uses the perl command which will call the “fastq2fasta.pl” script.
- _method_sed(*args, **kwargs)[source]
This method uses the UNIX function sed which is a non-interactive editor.
Note
Another method with sed has been tested but is less efficient. Here is which one was used:
cmd = """sed -n 's/^@/>/p;n;p;n;n'"""
Convert GENBANK to EMBL format
- class bioconvert.genbank2embl.GENBANK2EMBL(infile, outfile, *args, **kargs)[source]
Convert GENBANK file to EMBL file
Some description.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert GENBANK to EMBL format
- class bioconvert.genbank2fasta.GENBANK2FASTA(infile, outfile, *args, **kargs)[source]
Convert GENBANK file to FASTA file
Methods are based on biopython [BIOPYTHON], squizz [SQUIZZ] and our own Bioconvert implementation.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert GENBANK to GFF3 format
- class bioconvert.genbank2gff3.GENBANK2GFF3(infile, outfile, *args, **kargs)[source]
Convert GENBANK file to GFF3 file
Method based on biocode.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biocode'
Default value
- _method_biocode(*args, **kwargs)[source]
Uses scripts from biocode copied and modified in bioconvert.utils.biocode
Please see Main entry
- class bioconvert.gff22gff3.GFF22GFF3(infile, outfile, *args, **kargs)[source]
-
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
Method available is pure Python.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bioconvert'
Default value
- class bioconvert.gff32gff2.GFF32GFF2(infile, outfile, *args, **kargs)[source]
-
Method available is Python-based.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bioconvert'
Default value
- class bioconvert.gfa2fasta.GFA2FASTA(infile, outfile)[source]
Convert sorted GFA file into FASTA file
Available methods are based on awk or python (default)
See also
bioconvert.simulator.gfa- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value
- _method_awk(*args, **kwargs)[source]
For this method, we use the awk tools.
- Returns:
the standard output
- Return type:
io.StringIOobject.
Note
this method fold the sequence to 80 characters
- class bioconvert.gz2bz2.GZ2BZ2(infile, outfile, *args, **kargs)[source]
-
Unzip input file using pigz or gunzip and compress using pbzip2. Default is pigz/pbzip2.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pigz_pbzip2'
Default value
- _method_gunzip_bzip2(*args, **kwargs)[source]
Single theaded conversion. Method that uses gunzip bzip2.
- class bioconvert.gz2dsrc.GZ2DSRC(infile, outfile, *args, **kargs)[source]
Convert compressed fastq.gz file into DSRC compressed file
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pigzdsrc'
Default value
- _method_pigzdsrc(*args, **kwargs)[source]
do the conversion gz -> DSRC
- Returns:
the standard output
- Return type:
io.StringIOobject.
Method that uses pigz and dsrc.
- class bioconvert.json2yaml.JSON2YAML(infile, outfile, *args, **kargs)[source]
Convert JSON file into YAML file
Conversion is based on yaml and json standard Python modules Indentation is set to 4 by default and affects the sections (not the list). For example:
fruits_list: - apple - orange section1: do: true misc: 1
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'yaml'
Default value
Convert MAF file to SAM format
- class bioconvert.maf2sam.MAF2SAM(infile, outfile)[source]
This is the Multiple alignment format or MIRA assembly format
This is not Mutation Annotation Format (somatic)
pbsim creates this kind of data
Some references:
https://github.com/arq5x/nanopore-scripts/master/maf-convert.py
http://bioperl.org/formats/alignment_formats/MAF_multiple_alignment_format.html
Those two codes were in Py2 at the time of this implementation. We re-used some of the information from maf-convert but the code in bioconvert.io.maf can be considered original.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value
Converts NEWICK file to NEXUS format.
- class bioconvert.newick2nexus.NEWICK2NEXUS(infile, outfile=None, *args, **kwargs)[source]
Converts a tree file from NEWICK format to NEXUS format.
Methods available are based on gotree [GOTREE].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'gotree'
Default value
Converts NEWICK file to PHYLOXML format.
- class bioconvert.newick2phyloxml.NEWICK2PHYLOXML(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a tree file from NEWICK format to PHYLOXML format.
Methods available are based on gotree [GOTREE].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'gotree'
Default value
- class bioconvert.nexus2fasta.NEXUS2FASTA(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from NEXUS format to FASTA format.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
- _method_biopython(*args, **kwargs)[source]
- Convert NEXUS interleaved or sequential file in FASTA format using biopython.
The FASTA output file will be an aligned FASTA file.
For instance:
We have a Nexus input file that look like
#NEXUS [TITLE: Test file] begin data; dimensions ntax=3 nchar=123; format interleave datatype=DNA missing=N gap=-; matrix read3 -AT--------CCCGCTCGATGGGCCTCATTGCGTCCACTAGTTGATCTT read2 -----------------------GGAAGCCCACGCCACGGTCTTGATACG read4 ---------------------AGGGATGAACGATGCTCGCAGTTGATGCT read3 CTGGAGTAT---T----TAGGAAAGCAAGTAAACTCCTTGTACAAATAAA read2 AATTTTTCTAATGGCTATCCCTACATAACCTAACCGGGCATGTAATGTGT read4 CAGAAGTGCCATTGCGGTAGAAACAAATGTTCCCAGATTGTTGACTGATA read3 GATCTTA-----GATGGGCAT-- read2 CACCGTTGTTTCGACGTAAAGAG read4 AGTAGGACCTCAGTCGTGACT-- ; end; begin assumptions; options deftype=unord; end;
the output file will look like
>read3 -AT--------CCCGCTCGATGGGCCTCATTGCGTCCACTAGTTGATCTTCTGGAGTAT- --T----TAGGAAAGCAAGTAAACTCCTTGTACAAATAAAGATCTTA-----GATGGGCA T-- >read2 -----------------------GGAAGCCCACGCCACGGTCTTGATACGAATTTTTCTA ATGGCTATCCCTACATAACCTAACCGGGCATGTAATGTGTCACCGTTGTTTCGACGTAAA GAG >read4 ---------------------AGGGATGAACGATGCTCGCAGTTGATGCTCAGAAGTGCC ATTGCGGTAGAAACAAATGTTCCCAGATTGTTGACTGATAAGTAGGACCTCAGTCGTGAC T--
and not
>read3 ATCCCGCTCGATGGGCCTCATTGCGTCCACTAGTTGATCTTCTGGAGTATTTAGGAAAGC AAGTAAACTCCTTGTACAAATAAAGATCTTAGATGGGCAT >read2 GGAAGCCCACGCCACGGTCTTGATACGAATTTTTCTAATGGCTATCCCTACATAACCTAA CCGGGCATGTAATGTGTCACCGTTGTTTCGACGTAAAGAG >read4 AGGGATGAACGATGCTCGCAGTTGATGCTCAGAAGTGCCATTGCGGTAGAAACAAATGTT CCCAGATTGTTGACTGATAAGTAGGACCTCAGTCGTGACT
Converts NEXUS file to NEWICK format.
- class bioconvert.nexus2newick.NEXUS2NEWICK(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a tree file from NEXUS format to NEWICK format.
Methods available are based on biopython [BIOPYTHON] or goalign [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'gotree'
Default value
Converts NEXUS file to PHYLIP format.
- class bioconvert.nexus2phylip.NEXUS2PHYLIP(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from NEXUS format to PHYLIP format.
Methods available are based on goalign [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'goalign'
Default value
Converts NEXUS file to PHYLOXML format.
- class bioconvert.nexus2phyloxml.NEXUS2PHYLOXML(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a tree file from NEXUS format to PHYLOXML format.
Methods available are based on squizz [SQUIZZ] or biopython [BIOPYTHON], and goalign [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'gotree'
Default value
Convert XLS format to CSV format
- class bioconvert.ods2csv.ODS2CSV(infile, outfile)[source]
Convert XLS file into CSV file
Method based on pyexcel [PYEXCEL].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pyexcel'
Default value
Converts PHYLIP file to CLUSTAL format.
- class bioconvert.phylip2clustal.PHYLIP2CLUSTAL(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from PHYLIP format to CLUSTAL format
Methods available are based on biopython [BIOPYTHON], squiz [SQUIZZ].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Converts PHYLIP file to FASTA format.
- class bioconvert.phylip2fasta.PHYLIP2FASTA(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment in PHYLIP format to FASTA format
Methods available are based on biopython [BIOPYTHON], squiz [SQUIZZ].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
default value
Converts PHYLIP file to NEXUS format.
- class bioconvert.phylip2nexus.PHYLIP2NEXUS(infile, outfile=None, *args, **kwargs)[source]
Converts a sequence alignment from PHYLIP format to NEXUS format.
Methods available are based on goalign [GOALIGN].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'goalign'
Default value
Converts PHYLIP file to STOCKHOLM format.
- class bioconvert.phylip2stockholm.PHYLIP2STOCKHOLM(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from PHYLIP interleaved to STOCKHOLM
Methods available are based on biopython [BIOPYTHON], squiz [SQUIZZ].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Converts PHYLIP file to XMFA format.
- class bioconvert.phylip2xmfa.PHYLIP2XMFA(infile, outfile=None, *args, **kwargs)[source]
Converts a sequence alignment from PHYLIP format to XMFA
Methods available are based on biopython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Converts PHYLOXML file to NEWICK format.
- class bioconvert.phyloxml2newick.PHYLOXML2NEWICK(infile, outfile=None, *args, **kwargs)[source]
Converts a tree file from PHYLOXML format to NEWICK format.
Methods available are based on gotree [GOTREE].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'gotree'
Default value
Converts PHYLOXML file to NEXUS format.
- class bioconvert.phyloxml2nexus.PHYLOXML2NEXUS(infile, outfile=None, *args, **kwargs)[source]
Converts a tree file from PHYLOXML format to NEXUS format.
Methods available are based on gotree [GOTREE].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'gotree'
Default value
- class bioconvert.plink2bplink.PLINK2BPLINK(infile, outfile=None, *args, **kwargs)[source]
Converts a genotype dataset ped+map in PLINK format to bed+bim+fam BPLINK format
Conversion is based on plink executable
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'plink'
Default value
Convert SAM file to BAM format
- class bioconvert.sam2bam.SAM2BAM(infile, outfile, *args, **kargs)[source]
-
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
Convert SAM file to CRAM format
- class bioconvert.sam2cram.SAM2CRAM(infile, outfile, reference=None, *args, **kargs)[source]
-
The conversion requires the reference corresponding to the input file It can be provided as an argument with the standalone (--reference). Otherwise, users are asked to provide it.
Methods available are based on samtools [SAMTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'samtools'
Default value
- class bioconvert.sam2paf.SAM2PAF(infile, outfile, *args, **kargs)[source]
-
The SAM and PAF formats are described in the Formats section.
Description:
The header of the SAM file (lines starting with @) are dropped. However, the length of the target is retrieved from the @SQ line that must be present.
Consider this SAM file with two alignements only. One is aligned on the target (first) while the other is not (indicated by the
*characters):@SQ SN:ENA|K01711|K01711.1 LN:15894 @PG ID:minimap2 PN:minimap2 VN:2.5-r572 CL:minimap2 -a measles.fa Hm2_GTGAAA_L005_R1_001.fastq.gz HISEQ:426:C5T65ACXX:5:2302:1943:2127 0 ENA|K01711|K01711.1 448 60 101M * 00 CTTACCTTCGCATCAAGAGGTACCAACATGGAGGATGAGGCGGACCAATACTTTTCACATGATGATCCAATTAGTAGTGATCAATCCAGGTTCGGATGGTT BCCFFFFFHHHHHIIJJJJJJIIJJJJJJJJFHIHIJJJIJIIIIGHFFFFFFEEEEEEEDDDDDFDDDDDDDDD>CDDEDEEDDDDDDCCDDDDDDDDCD NM:i:0 ms:i:202 AS:i:202 nn:i:0 tp:A:P cm:i:14 s1:i:94 s2:i:0 HISEQ:426:C5T65ACXX:5:2302:4953:2090 4 * 0 0 * * 0 0 AGATCGGAAGAGCACACGTCTGAACTCCAGTCACGTGAAAATCTCGTATGCCGTCTTCTGCTTGAAAAAAAAAAAAAAAACAACCAAAAAGAGACGAACAA CCCFFDDFAFFBHJHGGGIHIJBGGHIIJJJJJJJHGEIJGIFIIIHCBGHIJIIIIIJJHHHHEF@D@=;=,0)0&5&))+(((+((((&+(((()&&)(
The equivalent PAF file is
HISEQ:426:C5T65ACXX:5:2302:1943:2127 101 0 101 + ENA|K01711|K01711.1 15894 447 548 101 101 60 NM:i:0 ms:i:202 AS:i:202 nn:i:0 tp:A:P cm:i:14 s1:i:94 s2:i:0 cg:Z:101M
In brief, the sequences are dropped. The final file is therefore smaller. Extra fields (starting from NM:i:0) can be dropped or kept using the keep_extra_field argument. Alignement with
*characters are dropped. The first line (@SQ) is used to retrieve the length of the contigs that is stored in the PAF file (column 6).The 12 compulsary PAF fields are:
Col
Type
Description
1
string
Query sequence name
2
int
Query sequence length
3
int
Query start (0-based)
4
int
Query end (0-based)
5
char
Relative strand: “+” or “-”
6
string
Target sequence name
7
int
Target sequence length
8
int
Target start on original strand (0-based)
9
int
Target end on original strand (0-based)
10
int
Number of residue matches
11
int
Alignment block length
12
int
Mapping quality (0-255; 255 for missing)
For developesr:
Get the measles data from Sequana library (2 paired fastq files):
minimap2 measles.fa R1.fastq > approx-mapping.paf
You can ask minimap2 to generate CIGAR at the cg tag of PAF with:
minimap2 -c measles.fa R1.fastq > alignment.paf
or to output alignments in the SAM format:
minimap2 -a measles.fa R1.fastq > alignment.sam
The SAM lines must contains 11 positional element and the NM:i and nn:i fields (see example above).
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Reference:
This function is a direct translation of https://github.com/lh3/miniasm/blob/master/misc/sam2paf.js (Dec. 2017).
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value
Convert SCF file to FASTA file
- class bioconvert.scf2fasta.SCF2FASTA(infile, outfile)[source]
Converts a binary SCF/ABI file to Fasta format.
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value
Convert SCF file to FASTQ file
- class bioconvert.scf2fastq.SCF2FASTQ(infile, outfile)[source]
Converts a binary SCF file to FastQ file
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value
Convert SRA format to FASTA format
- class bioconvert.sra2fastq.SRA2FASTQ(infile, outfile, test=False)[source]
Download FASTQ from SRA archive
bioconvert sra2fastq ERR043367
This may take some times since the files are downloaded from SRA website.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
isPairedSRA
shell
constructor
https://edwards.flinders.edu.au/fastq-dump/
library used: sra-toolkit
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
isPairedSRA
shell
- _default_method = 'fastq_dump'
Default value
Converts STOCKHOLM file to CLUSTAL file.
- class bioconvert.stockholm2clustal.STOCKHOLM2CLUSTAL(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment from STOCKHOLM format to CLUSTAL format
Methods available are based on squizz [SQUIZZ] and biopython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Converts STOCKHOLM to PHYLIP format.
- class bioconvert.stockholm2phylip.STOCKHOLM2PHYLIP(infile, outfile=None, *args, **kwargs)[source]
Converts a sequence alignment from STOCKHOLM format to PHYLIP interleaved format
Methods available are based on squizz [SQUIZZ], and biopython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
Convert TSV format to CSV format
- class bioconvert.tsv2csv.TSV2CSV(infile, outfile)[source]
Convert TSV file into CSV file
Available methods: Python, Pandas
Methods available are based on python or Pandas [PANDAS].
See also
CSV2TSV- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value
- _method_pandas(in_sep='\t', out_sep=',', line_terminator='\n', *args, **kwargs)[source]
- _method_python(in_sep='\t', out_sep=',', line_terminator='\n', *args, **kwargs)[source]
Conversion from TWOBIT to FASTA format
- class bioconvert.twobit2fasta.TWOBIT2FASTA(infile, outfile=None, alphabet=None, *args, **kwargs)[source]
Converts a sequence alignment in TWOBIT format to FASTA format
Conversion is based on UCSC [UCSC] and py2bit.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'py2bit'
Default value
- class bioconvert.vcf2bcf.VCF2BCF(infile, outfile=None, *args, **kwargs)[source]
Convert VCF file to BCF format
Method based on bcftools [BCFTOOLS].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'bcftools'
Default value
- class bioconvert.vcf2bed.VCF2BED(infile, outfile)[source]
Convert VCF file to BED3 file by extracting positions.
The awk method implemented here below reports an interval of 1 for SNP, the length of the insertion or the length of the deleted part in case of deletion.
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'awk'
Default value
- _method_awk(*args, **kwargs)[source]
do the conversion VCF -> BED using awk
- Returns:
the standard output
- Return type:
io.StringIOobject.
Convert VCF format to WIGGLE format
- class bioconvert.vcf2wiggle.VCF2WIGGLE(infile, outfile)[source]
Convert sorted VCF file into WIGGLE file
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'wiggletools'
Default value
Convert XLS format to CSV format
- class bioconvert.xls2csv.XLS2CSV(infile, outfile)[source]
Convert XLS file into CSV file
Extra arguments when using Bioconvert executable.
name
Description
–sheet-name
The name or id of the sheet to convert
–out-sep
The separator used in the output file
–line-terminator
The line terminator used in the output file
Methods available are based on pandas [PANDAS] and pyexcel [PYEXCEL].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Constructor
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _method_pandas(out_sep=',', line_terminator='\n', sheet_name=0, *args, **kwargs)[source]
Convert XLS format to CSV format
- class bioconvert.xlsx2csv.XLSX2CSV(infile, outfile)[source]
Convert XLSX file into CSV file
Extra arguments when using Bioconvert executable.
name
Description
–sheet-name
The name or id of the sheet to convert
–out-sep
The separator used in the output file
–line-terminator
The line terminator used in the output file
Methods available are based on pandas [PANDAS] and pyexcel [PYEXCEL].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
Constructor
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'pandas'
Default value
- _method_pandas(out_sep=',', line_terminator='\n', sheet_name=0, *args, **kwargs)[source]
- class bioconvert.xmfa2phylip.XMFA2PHYLIP(infile, outfile=None, *args, **kwargs)[source]
Converts a sequence alignment from XMFA to PHYLIP format.
Method available based on biopython [BIOPYTHON].
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'biopython'
Default value
- class bioconvert.yaml2json.YAML2JSON(infile, outfile, *args, **kargs)[source]
Convert YAML file into JSON file
Conversion is based on yaml and json standard Python modules
Note
YAML comments will be lost in JSON output
- Reference:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()get_json()Return the JSON dictionary corresponding to the YAML input.
install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
constructor
- Parameters:
- Attributes:
- default
nameThe name of the class
Methods
__call__(*args[, method_name])boxplot_benchmark([rot_xticks, ...])This function plots the benchmark computed in
compute_benchmark()compute_benchmark([N, to_exclude, to_include])Simple wrapper to call
Benchmarkget_IO_arguments()get_json()Return the JSON dictionary corresponding to the YAML input.
install_tool(executable)Install the given tool, using the script: bioconvert/install_script/install_executable.sh if the executable is not already present
add_argument_to_parser
execute
get_additional_arguments
get_common_arguments
get_common_arguments_for_converter
get_description
shell
- _default_method = 'python'
Default value