Question: narrow and xstringset
0
gravatar for carol white
5.3 years ago by
carol white680
European Union
carol white680 wrote:
Hi, How can narrow be used with a dnastring? because when i use it with an instance of dnastring I get Error in (function (classes, fdef, mtable)  :   unable to find an inherited method for function ‘narrow’ for signature ‘"DNAString"’ and when i convert the instance of dnastring with DNAStringSet(toString(str)) and use with narrow with any value for end and width I get Error in .Call2("solve_user_SEW", refwidths, start, end, width, translate.negative.coord,  :   solving row 1: 'allow.nonnarrowing' is FALSE and the supplied end (500) is > refwidth + 1 Look forward to your reply, carol [[alternative HTML version deleted]]
convert • 1.1k views
ADD COMMENTlink modified 5.3 years ago by Valerie Obenchain6.7k • written 5.3 years ago by carol white680
Answer: narrow and xstringset
0
gravatar for Valerie Obenchain
5.3 years ago by
United States
Valerie Obenchain6.7k wrote:
Hi, On 08/11/14 06:20, carol white wrote: > Hi, > How can narrow be used with a dnastring? because when i use it with an instance of dnastring I get > > Error in (function (classes, fdef, mtable)? : > ? unable to find an inherited method for function ???narrow??? for signature ???"DNAString"??? That's correct. There is no narrow() method for DNAString. > > > and when i convert the instance of dnastring with > > DNAStringSet(toString(str)) > > > and use with narrow with any value for end and width > > > I get > > Error in .Call2("solve_user_SEW", refwidths, start, end, width, translate.negative.coord,? : > ? solving row 1: 'allow.nonnarrowing' is FALSE and the supplied end (500) is > refwidth + 1 > > In your other email on the list (title 'iranges') I explained how 'start' and 'end' work for narrow(). My guess is that was the problem here. d <- DNAString("TTGAAAA-CTC-N") Conversion to string is not necessary, the DNAStringSet can be created with the DNAString. > DNAStringSet(d) A DNAStringSet instance of length 1 width seq [1] 13 TTGAAAA-CTC-N Specify 'start' to begin 3 positions in (greater than) from the current start. > narrow(DNAStringSet(d), 3) A DNAStringSet instance of length 1 width seq [1] 11 GAAAA-CTC-N Valerie > > Look forward to your reply, > > carol > > [[alternative HTML version deleted]] > > > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor > -- Valerie Obenchain Program in Computational Biology Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, Seattle, WA 98109 Email: vobencha at fhcrc.org Phone: (206) 667-3158
ADD COMMENTlink written 5.3 years ago by Valerie Obenchain6.7k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 375 users visited in the last hour