[R] How to access values in s4 method

2010-10-21 Thread Fahim Md
Hi How to access the values in the output that is an object of S4 type. I tried to access using subset ( [ ] ) but it is not allowed. Any clue?? Thanks -- Fahim #My code is as follows: require(IRanges); query - IRanges(c(1, 4, 9), c(5, 7, 10)) subject - IRanges(c(2, 2, 10), c(2, 3, 12))

[R] union data in column

2010-07-23 Thread Fahim Md
Is there any function/way to merge/unite the following data GENEID col1 col2 col3col4 G234064 1 0 0 0 G234064 1 0 0 0 G234064 1

Re: [R] calling a c function from R

2010-07-14 Thread Fahim Md
/manuals/R-exts.pdf There are simple instructions in this document under the heading System and foreign language interfaces. -Matt On Wed, 2010-07-14 at 01:21 -0400, Fahim Md wrote: Hi, I am trying to call a C function, that I wrote to parse a flat file, into R. The argument that will go

[R] calling a c function from R

2010-07-13 Thread Fahim Md
Hi, I am trying to call a C function, that I wrote to parse a flat file, into R. The argument that will go into this function is an input file that I need to parse and write the desired output in an output file. I used some hit and trial approach but i keep on getting the file not found or

[R] Is there any function to read genbank flat files.

2010-06-16 Thread Fahim Md
Hi I am trying to read genbank est flat files. Is there any function in R to do that. I was looking for something similar to SeqIO.parse(input_handle, genbank) in bioPython that convert the genebank sequence into fasta sequence. (One option is to call biopython from R but I am not familiar with

[R] installing a package in linux

2010-05-04 Thread Fahim Md
I recently started using ubuntu 9.10 and I am using gedit editor and R plugin for writing R code. To install any package I need to do: $ install.packages() //window pop-up for mirror selection //then another window pop up for package selection. After this as long as I am not exiting, the function

[R] using BLAT in r

2010-04-10 Thread Fahim Md
Does anyone know how to use BLAT(Blast-Like alignment tool) in R? Thanks and regards. -- Fahim [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] variable three dimensional array

2010-01-05 Thread Fahim Md
I am using R for my bioinformatics research. I am dealing with a graph in which I need to find all possible path. I was looking for some package that solve my purpose but all in vain. There are available algorithms but most of them find shortest path that ignore other paths So I decided to write

[R] PRoblem with paste function

2009-09-02 Thread Fahim Md
Hi there!!! I am having trouble with *paste* function. I dont know how to proceed. I tried many options but i failed miserably. I am using a variable f1 to assign a string as below: f1=dataLine[locAffyProbeID]; ( the value of f1 is *244901_at* ) Then I am using the paste function paste(set

[R] problem with paste function

2009-09-02 Thread Fahim Md
Hi there!! I am having trouble with *paste* function. I dont know how to proceed. I tried many options but i failed miserably. I am using a variable f1 to assign a string as below: f1=dataLine[locAffyProbeID]; ( the value of f1 is *244901_at* ) Then I am using the paste function paste(set g=,