skbio.parse.sequences.load

skbio.parse.sequences.load(seqs, qual=None, constructor=None, **kwargs)[source]

Construct the appropriate iterator for all your processing needs

This method will attempt to open all files correctly and to feed the appropriate objects into the correct iterators.

Seqs can list multiple types of files (e.g., FASTA and FASTQ), but if multiple file types are specified, qual must be None

Parameters:

seqs : str or list of sequence file paths

qual : str or list of qual file paths or None

constructor : force a constructor on seqs

kwargs : dict

passed into the subsequent generators.

Returns:

SequenceIterator

the return is Iterable