SequenceFileUtil
use SequenceFileUtil ;
use SequenceFileUtil qw(:all);
SequenceFileUtil module provides the following functions:
AreSequenceLengthsIdentical, CalcuatePercentSequenceIdentity, CalculatePercentSequenceIdentityMatrix, GetLongestSequence, GetSequenceLength, GetShortestSequence, IsClustalWSequenceFile, IsGapResidue, IsMSFSequenceFile, IsPIRFastaSequenceFile, IsPearsonFastaSequenceFile, IsSupportedSequenceFile, ReadClustalWSequenceFile, ReadMSFSequenceFile, ReadPIRFastaSequenceFile, ReadPearsonFastaSequenceFile, ReadSequenceFile, RemoveSequenceAlignmentGapColumns, RemoveSequenceGaps, WritePearsonFastaSequenceFile SequenceFileUtil module provides various methods to process sequence files and retreive appropriate information.
Checks the lengths of all the sequences available in SequencesDataRef and returns 1 or 0 based whether lengths of all the sequence is same.
Returns percent identity between Sequence1 and Sequence2. Optional arguments IgnoreGaps and Precision control handling of gaps in sequences and precision of the returned value. By default, gaps are ignored and precision is set up to 1 decimal.
Calculate pairwise percent identity between all the sequences available in SequencesDataRef and returns a reference to identity matrix hash. Optional arguments IgnoreGaps and Precision control handling of gaps in sequences and precision of the returned value. By default, gaps are ignored and precision is set up to 1 decimal.
Returns length of the specified sequence. Optional argument IgnoreGaps controls handling of gaps. By default, gaps are ignored.
Checks the lengths of all the sequences available in $SequencesDataRef and returns $ID, $Sequence, $SeqLen, and $Description values for the shortest sequence. Optional arguments $IgnoreGaps controls handling of gaps in sequences. By default, gaps are ignored.
Checks the lengths of all the sequences available in SequencesDataRef and returns ID, Sequence, SeqLen, and Description values for the longest sequence. Optional argument $IgnoreGaps controls handling of gaps in sequences. By default, gaps are ignored.
Returns 1 or 0 based on whether Residue corresponds to a gap. Any character other than A to Z is considered a gap residue.
Returns 1 or 0 based on whether SequenceFile corresponds to a supported sequence format.
Returns 1 or 0 based on whether SequenceFile corresponds to Clustal sequence alignment format.
Returns 1 or 0 based on whether SequenceFile corresponds to Pearson FASTA sequence format.
Returns 1 or 0 based on whether SequenceFile corresponds to PIR FASTA sequence format.
Returns 1 or 0 based on whether SequenceFile corresponds to MSF sequence alignment format.
Reads SequenceFile and returns reference to a hash containing following key/value pairs:
Reads ClustalW SequenceFile and returns reference to a hash containing following key/value pairs as describes in ReadSequenceFile method.
Reads MSF SequenceFile and returns reference to a hash containing following key/value pairs as describes in ReadSequenceFile method.
Reads PIR FASTA SequenceFile and returns reference to a hash containing following key/value pairs as describes in ReadSequenceFile method.
Reads Pearson FASTA SequenceFile and returns reference to a hash containing following key/value pairs as describes in ReadSequenceFile method.
Removes gaps from Sequence and return a sequence without any gaps.
Using input alignment data map ref containing following keys, generate a new hash with same set of keys after residue columns containg only gaps have been removed:
Using sequence data specified via SequenceDataRef, write out a Pearson FASTA sequence file. Optional argument MaxLength controls maximum length sequence in each line; default is 80.
Copyright (C) 2024 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.