utils
- class integron_finder.utils.FastaIterator(path, replicon_name=None, dist_threshold=4000, alphabet=None)[source]
Allow to parse over a multi fasta file, and iterate over it
Warning
The sequences order is not guarantee.
- __init__(path, replicon_name=None, dist_threshold=4000, alphabet=None)[source]
- Parameters:
path (str) – The path to the file containing the sequences.
alphabet (Bio.SeqIUPAC member) – The authorized alphabet
replicon_name (str) – The name of the replicon, if this specify all sequence.name will have this value
dist_threshold (int) – The minimum length for a replicon to be considered as circular. Under this threshold even the provided topology is ‘circular’ the computation will be done with a ‘linear’ topology.
- __next__()[source]
- Returns:
The next sequence (the order of sequences is not guaranteed).
- Return type:
a
Bio.SeqRecordobject or None if the sequence is not compliant with the alphabet.
- __weakref__
list of weak references to the object
- class integron_finder.utils.MultiFastaReader(path)[source]
Iterate over sequence of a fasta file
- __weakref__
list of weak references to the object
- integron_finder.utils.get_name_from_path(path)[source]
- Parameters:
path – The path to extract name for instance the fasta file to the replicon
- Returns:
the name of replicon for instance if path = /path/to/replicon.fasta name = replicon