mrparse.mr_sequence module

Created on 17 Nov 2018

@author: jmht & hlasimpk

exception MultipleSequenceException[source]

Bases: Exception

class Sequence(seq_file=None, sequence=None, sequence_type=None)[source]

Bases: object

Class for handling sequence data

property molecular_weight
static sequence_type_from_filename(seq_file)[source]
write(seq_file, sequence_type=None, description=None)[source]

Write sequence out to file seq_file of type sequence_type.

Parameters
  • seq_file (str) – The filename of the file

  • sequence_type (str) – The type of the sequence (recogniseable to Biopython e.g. ‘fasta’)

  • description (str) – The text to put on the first line of the file if different from that already in the record

merge_multiple_sequences(seq_file)[source]

Function to merge multiple sequences from a fasta file

Parameters

seq_file (str) – The filename of the file

Returns

seq – mrparse.mr_sequence.Sequence object

Return type

obj

Raises

RuntimeError