Question: I have a DNA sequence that is a character vector of only ACTG's. EX. (AGTTTCATCGTTT) but a lot longer... Using regex code, (specificly gsub, grepl,

I have a DNA sequence that is a character vector of only ACTG's. EX. (AGTTTCATCGTTT) but a lot longer... Using regex code, (specificly gsub, grepl, grep or sub) i need to extract an exact sequence within the longer sequence. EX. I want only the TTTCATC from the above example. I am given the bp position of the start and finish of the sequence. EX. need to extract from bp 3 to 9.

thanks!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!