It's certainly possible to use subseq and append to insert sequences. I've
found it much faster to coerce to character and use substring and paste
though.

On Mon, Jul 19, 2010 at 8:11 PM, Andrew Yee <yee@post.harvard.edu> wrote:

> Is there a way to use subseq() to insert nucleotides?
>
> Take for example foo:
>
> foo <- DNAStringSet('ACTTA')
>
> I'd like to insert e.g. a G between positions 2 and 3 so that foo looks
> like
> 'ACGTTA'  Is there a way to do this using subseq()?  Or is an alternative
> function recommended?
>
> Thanks,
> Andrew
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-sig-sequencing mailing list
> Bioc-sig-sequencing@r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
>

	[[alternative HTML version deleted]]

