In: Computer Science
PYTHON Which of the following are valid ways to create a DNASeq object for the DNA sequence, GATCGATCGATC? (Select all that apply.)
DNA_seq = new Seq("GATCGATCGATC") |
||
DNA_seq = Seq(IUPACUnambiguousDNA() ,"GATCGATCGATC") |
||
DNA_seq = Seq("GATCGATCGATC") |
||
DNA_seq = Seq("GATCGATCGATC", IUPACUnambiguousDNA()) |
Given-
The question comprises of finding the valid ways to create a DNASeq object for the DNA Sequence.
Answer-
DNA_seq = Seq("GATCGATCGATC") |
DNA_seq = Seq("GATCGATCGATC", IUPACUnambiguousDNA()) |
option 4
Explanation-
These seq objects relationg to the DNA Structures like nucleotides, mutables etc comes under "Biopython", which are generally derived from the library: " Bio.Seq " in which there is a subpackage "Seq".
In order to create a new Seq object, the general syntax is:
new = Seq("Required DNA Sequence object to be created","optional biological alphabet")
here: new is the object name, which can be of any specific choice and is left to the user to implement it:
Therefore option 3 is correct.
Coming back to the syntax specified above: There is a second optional term in object creation : which is known as the biological alphabet:which are of wide varieties and be used to the specific requirement, in which one of it is IUPACUnambiguousDNA: which generally specifies that the sequence is of uppercase unambiguous DNA.
Therefore option 4 is also correct.