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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Raised when the file have an unexpected format

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,
            msg = 'The given input format does not correspond to the input'
            msg += ' file'
            raise WrongFormatError(msg)
 
        if 'fastq' in in_format:

src/s/e/seq_crumbs-HEAD/crumbs/filters.py   seq_crumbs(Download)
from crumbs.seq import get_name, get_file_format, get_str_seq, get_length,\
    SeqItem
from crumbs.exceptions import WrongFormatError
from crumbs.blast import Blaster, BlasterForFewSubjects
from crumbs.statistics import calculate_dust_score, IntCounter, draw_histogram
            msg = 'Some of the input sequences do not have qualities: {}'
            msg = msg.format(get_name(seq))
            raise WrongFormatError(msg)
        if self.ignore_masked:
            str_seq = str(seq_object.seq)