nucleic_acid 0.0.7 nucleic_acid: ^0.0.7 copied to clipboard
This is a package for nucleic acid analysis support. This package is made for scientists.
import 'package:nucleic_acid/nucleic_acid.dart';
void main() async {
NucleotideSequence gene = NucleotideSequence("attgac");
NucleotideSequence templateDNA =
gene.complemented(EnumNucleotideSequenceType.dna);
// Transcription(転写)
NucleotideSequence mRNA = gene.converted(EnumNucleotideSequenceType.rna);
NucleotideSequence tRNA = mRNA.complemented(EnumNucleotideSequenceType.rna);
// Translation(翻訳)
AminoAcidSequence peptide = AminoAcidSequence(mRNA);
// Translation(direct)(DNAから直接アミノ酸配列に変換)
AminoAcidSequence peptideFromDNA = AminoAcidSequence(gene);
// Extension(延長)
// attgacattgac
NucleotideSequence gene2 = gene + gene;
// attgaccagtta
NucleotideSequence gene3 = gene + gene.reversed();
// attgacattgac
gene.add(gene.reversed(), useDirection: true);
// Copy(複製)
NucleotideSequence geneCopy = gene.deepCopy();
// Get sub sequence(部分的な取り出し)
NucleotideSequence gac = NucleotideSequence("attgac").subSeq(3);
}