Displaying 6 results from an estimated 6 matches for "nanami".
2011 Jun 08
1
return counts of elements on a table column depending on elements on another column
...efseq$region=="exon")
But what I would like is to print for each chromosome how many are exons
and how many CDS. For example
chr1 has 5 CDS and 2 exons
chr2 has 10 CDS and 3 exons...
Can you tell what should I add? Or if I am doing this wrong, how should I do
it?
Thank you,
Regards,
Nanami
[[alternative HTML version deleted]]
2011 Jun 27
1
create a new data frame after comparing two columns of the previous data frame
...tra$start !=
intra$region_start and intra$end != intra$region_end.
I've tried using this but I get the following error:
> intra<- intra[(intra$start != intra$region_start )&&(intra$end !=
intra$region_end)]
> head(intra)
data frame with 0 columns and 6 rows
Thank you,
best,
Nanami
[[alternative HTML version deleted]]
2011 Jun 19
3
extract data from a column
Hi all,
I have a column that has the following format:
chr1:564588..564589,+ and I want to extract only the coordinates; I have
tried writing a regular expression but I couldn't figure out how I should
write it. Does anyone know?
Thank you,
Best,
Nanami
[[alternative HTML version deleted]]
2011 Jun 07
1
extract data from a data frame field
...11
I am trying to find out if there''s a way to extract the coordinates given
in the 4th column and replace this column with two others that would have
the start coord and the end coord. so instead of chr1:564644..564645,+
I would obtain;
start_peak end_peak
564644 564645
Best,
nanami
[[alternative HTML version deleted]]
2013 May 01
1
Sum objects in a column between an interval defined by conditions on another column
...n but I get stuck when using row indices
with data frames. So if I have the next data frame:
df
A B
[1,] 1 4
[2,] 1 3
[3,] 3 5
[4,] 3 7
[5,] 4 3
[6,] 5 2
The result I would obtain(considering that when I have ), would be:
df
A B
[1,] 1 7
[2,] 3 15
[3,] 5 2
- Nanami
[[alternative HTML version deleted]]
2013 Mar 11
0
splitting column into two
...tried this:
new <- cbind(CTSS,colsplit(CTSS$V4, ' ', c('peak_start', 'peak_end')) )
but instead of replacing the column it keeps it the same and adds two new columns at end of the columns(after 625 columns). Please let me know if you have a better solution.
Thank you,
Nanami
<quote author='arun kirshna'>
Hi,
May be this helps:
dat1<-read.table(text="
0111 0214 0203 0404 1112 0513 0709 1010 0915 0813
0112 0314 0204 0504 1132 0543 0789 1020 0965 0823
",sep="",header=FALSE,colClasses=rep("character",10))
res<-do.call...