pwem.convert.sequence module

class pwem.convert.sequence.SequenceHandler(sequence=None, iUPACAlphabet=0, isAminoacid=True)[source]

Bases: object

alignSeq(referenceSeq)[source]
downloadSeqFromDatabase(seqID)[source]
downloadSeqFromFile(fileName, type='fasta')[source]
saveFile(fileName, seqID, sequence=None, name=None, seqDescription=None, type='fasta')[source]
pwem.convert.sequence.alignBioPairwise2Sequences(structureSequenceId, structureSequence, userSequenceId, userSequence, outFileName)[source]

aligns two sequences and saves them to disk using fasta format

pwem.convert.sequence.alignClustalSequences(inFile, outFile)[source]
pwem.convert.sequence.alignMuscleSequences(inFile, outFile)[source]
pwem.convert.sequence.alphabetToIndex(isAminoacid, alphabet)[source]
pwem.convert.sequence.cleanSequence(alphabet, sequence)[source]
pwem.convert.sequence.cleanSequenceScipion(isAminoacid, iUPACAlphabet, sequence)[source]
pwem.convert.sequence.indexToAlphabet(isAminoacid, iUPACAlphabet)[source]
pwem.convert.sequence.saveFileSequencesToAlign(SeqDic, inFile, type='fasta')[source]
pwem.convert.sequence.sequenceLength(filename, format='fasta')[source]