Skip to content
Prev 264345 / 398503 Next

For help in R coding

Dear David,

Thanks for your reply.I tried your code it is running but as I mentioned in my mail,I am working on pileup file.So I used a command-
mydf=read.table("Case2.pileup",fill=T,sep="\t")
to read pileup file to have data frame i:e mydf.Now the problem is it has 10 columns and have to count the number of A C G T which is in 9th column.
In your mail we input data like this
+            .t,t,,
+            .,c,c,
+            .,a,,,
+            .,t,t,t
+            .c,,g,^!.
+            .g,ggg.^!,
+            .$,,,,,.,
+            a,g,,t,
+            ,,,,,.,^!.
+            ,$,,,,.,."

but how I should input my data(in column 9) from dataframe mydf using txt command because there are thousands of rows?

Thanking you,
Warm Regards
Vikas Bansal
Msc Bioinformatics
Kings College London
Message-ID: <5BDAC30CDCA4184E9E5E57167D4E2C96018E5C8FEBE2@KCL-MAIL01.kclad.ds.kcl.ac.uk>
In-Reply-To: <5BDAC30CDCA4184E9E5E57167D4E2C96018E5C8FEBE1@KCL-MAIL01.kclad.ds.kcl.ac.uk>