Class TranscriptSequence

    • Constructor Detail

      • TranscriptSequence

        public TranscriptSequence​(GeneSequence parentDNASequence,
                                  int begin,
                                  int end)
        Deprecated.
        Use public TranscriptSequence(GeneSequence parentDNASequence, AccessionID accessionID, int begin, int end) that requires an explicit accessionID
    • Method Detail

      • removeCDS

        public CDSSequence removeCDS​(String accession)
        Remove a CDS or coding sequence from the transcript sequence
        Parameters:
        accession -
        Returns:
      • addCDS

        public CDSSequence addCDS​(AccessionID accession,
                                  int begin,
                                  int end,
                                  int phase)
                           throws Exception
        Add a Coding Sequence region with phase to the transcript sequence
        Parameters:
        accession -
        begin -
        end -
        phase - 0,1,2
        Returns:
        Throws:
        Exception
      • getProteinCDSSequences

        public ArrayList<ProteinSequencegetProteinCDSSequences()
        Return a list of protein sequences based on each CDS sequence where the phase shift between two CDS sequences is assigned to the CDS sequence that starts the triplet. This can be used to map a CDS/exon region of a protein sequence back to the DNA sequence If you have a protein sequence and a predicted gene you can take the predict CDS protein sequences and align back to the protein sequence. If you have errors in mapping the predicted protein CDS regions to an the known protein sequence then you can identify possible errors in the prediction
        Returns:
      • addStartCodonSequence

        public void addStartCodonSequence​(AccessionID accession,
                                          int begin,
                                          int end)
        Sets the start codon sequence at given begin / end location. Note that calling this method multiple times will replace any existing value.
        Parameters:
        accession -
        begin -
        end -
      • addStopCodonSequence

        public void addStopCodonSequence​(AccessionID accession,
                                         int begin,
                                         int end)
        Sets the stop codon sequence at given begin / end location. Note that calling this method multiple times will replace any existing value.
        Parameters:
        accession -
        begin -
        end -