public static MutationNt2AADescriptor [ ] nt2aaDetailed ( NucleotideSequence seq1 , Mutations < NucleotideSequence > mutations , TranslationParameters translationParameters , int maxShiftedTriplets ) { MutationsWitMapping mutationsWitMapping = nt2aaWithMapping ( seq1 , mutations , translationParameters , maxShiftedTriplets ) ; int [ ] individualMutations = nt2IndividualAA ( seq1 , mutations , translationParameters ) ; MutationNt2AADescriptor [ ] result = new MutationNt2AADescriptor [ mutations . size ( ) ] ; for ( int i = 0 ; i < mutations . size ( ) ; i ++ ) { result [ i ] = new MutationNt2AADescriptor ( mutations . getMutation ( i ) , individualMutations [ i ] , mutationsWitMapping . mapping [ i ] == - 1 ? NON_MUTATION : mutationsWitMapping . mutations . getMutation ( mutationsWitMapping . mapping [ i ] ) ) ; } return result ; }
Performs a comprehensive translation of mutations present in a nucleotide sequence to effective mutations in corresponding amino acid sequence .