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

All Samples(7)  |  Call(3)  |  Derive(0)  |  Import(4)
Raised when the format of a sequence file cannot be guessed

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)
    chunk = peek_chunk_from_file(fhand, chunk_size)
    if not chunk:
        raise UnknownFormatError('The file is empty')
    fhand_ = cStringIO.StringIO(chunk)
    total_letters = 0

src/s/e/seq_crumbs-HEAD/crumbs/utils/file_formats.py   seq_crumbs(Download)
from crumbs.settings import get_setting
from crumbs.utils.file_utils import fhand_is_seekable, peek_chunk_from_file
from crumbs.exceptions import (UnknownFormatError, UndecidedFastqVersionError,
                               FileIsEmptyError)
 
    if chunk.startswith('>'):
        if lines[1].startswith('>'):
            raise UnknownFormatError('Malformed fasta')
        else:
            first_item = lines[1].strip().split()[0]
    elif chunk.startswith('ID'):
        return 'embl'
    raise UnknownFormatError('Sequence file of unknown 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,

src/s/e/seq_crumbs-HEAD/test/test_guess_seq_format.py   seq_crumbs(Download)
from crumbs.utils.bin_utils import BIN_DIR
from crumbs.utils.file_formats import get_format, _guess_format
from crumbs.exceptions import (UnknownFormatError, FileIsEmptyError,
                               UndecidedFastqVersionError)