Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(3)  |  Derive(0)  |  Import(4)
Asked output format is incompatible with input file formats

src/s/e/seq_crumbs-HEAD/crumbs/seqio.py   seq_crumbs(Download)
from crumbs.utils.data import (ambiguous_rna_letters, ambiguous_dna_letters,
                               extended_protein_letters)
from crumbs.exceptions import (MalformedFile, error_quality_disagree,
                               UnknownFormatError, IncompatibleFormatError,
                               FileIsEmptyError, IsSingleLineFastqError)
def seqio(in_fhands, out_fhand, out_format, copy_if_same_format=True):
    'It converts sequence files between formats'
    if out_format not in get_setting('SUPPORTED_OUTPUT_FORMATS'):
        raise IncompatibleFormatError("This output format is not supported")
 
            if 'No suitable quality scores' in str(error):
                msg = 'No qualities available to write output file'
                raise IncompatibleFormatError(msg)
            raise
    flush_fhand(out_fhand)

src/s/e/seq_crumbs-HEAD/crumbs/utils/bin_utils.py   seq_crumbs(Download)
 
from crumbs.third_party import cgitb
from crumbs.exceptions import (UnknownFormatError, FileNotFoundError,
                               WrongFormatError, TooManyFiles,
                               MalformedFile, SampleSizeError,

src/s/e/seq_crumbs-HEAD/crumbs/mapping.py   seq_crumbs(Download)
from crumbs.seq import SeqItem, SeqWrapper, get_str_seq, get_name
from crumbs.utils.tags import SEQITEM
from crumbs.exceptions import IncompatibleFormatError
from crumbs.iterutils import sorted_items
from crumbs.seqio import read_seqs
        lines = ['@' + name + '\n', seq, '+\n', quality + '\n']
    else:
        raise IncompatibleFormatError('Not supported format: ' + file_format)
    return SeqWrapper(SEQITEM, SeqItem(name, lines), file_format)
 

src/s/e/seq_crumbs-HEAD/test/test_seqio.py   seq_crumbs(Download)
                          _itemize_fastx, read_seqs, write_seqs)
from crumbs.utils.tags import SEQITEM, SEQRECORD
from crumbs.exceptions import IncompatibleFormatError, MalformedFile