Displaying 20 results from an estimated 1000 matches similar to: "How to catch an error using try"
2013 Feb 08
1
Conflict command getSequence {biomaRt} and getSequence {seqinr} !!
Hi !
Facing problem with " getSequence" commend .
when only biomaRt package loaded the following example working well
>mart <- useMart("ensembl",dataset="hsapiens_gene_ensembl")
>seq = getSequence(id="BRCA1", type="hgnc_symbol", seqType="peptide", mart = mart)
show(seq)
but when i have loaded the seqinr, i got problem
2013 May 07
1
Problem with biomaRt::getSequence.
Hi,
I can run the code some days ago . But cant run now.
Problem 1: Output is ok
ensembl = useDataset("hsapiens_gene_ensembl",mart=ensembl)
utr5 = getSequence(chromosome=3, start=185514033, end=185535839, type="entrezgene",seqType="5utr", mart=ensembl)
Output :
5utr
2010 May 28
1
why biomaRt cannot extract 3UTR sequences for 1941 ENSGxxxxx ?
I executed the following lines several times from a script as well as pasting them in an R shell.
Systematically biomaRt is failing.
The problem is to extract the 3UTR sequences corresponding to a vector containing 1941
Ensembl Transcript numbers (some are duplicated ... is this s problem ?)
Please, find the failing instructions in the following including the ENST vector
Any suggestion is
2009 Jun 23
1
Cannot install pakages from Bioconductor besides the default installation
I am running the last R version on SuSE 11.1.
I installed the Bioconductor environment following the instructions on the web. As a consequence some
core packages from Bioconductors were installed.
I need to add some more packages. So I tried biomaRt as follows.
It does not get installed correctly.
Please see the following sequence.
Thank you in advance.
Maura
>
2009 Mar 26
1
Fortran-90 and R
I have some code in Fortran-90 that outperforms my R implementation of the same algorithm (in terms of speed).
I wonder whether it is possible to interface R with Fortran-90. that is would like to call a Fortran routine from my R
script, passing to the Fortran routine some real numbers array, some scalar real numbers, and an integer number .
I have no idea how to do that because Fortran is a
2009 Jul 17
0
How to prpare the input data to writeFASTA ? Examples of CharacterToFASTArecords ...
I realize function write FASTA expects a list with two items, respectively, description and sequence.
However, just passing a list won't work (please, see code at the bottom of this message)
I saw there is the helper function CharacterToFASTArecords(x) that presumably generates the right input data format.
It would b very useful to get some example of CharacterToFASTArecords(x) usage.
The
2011 Oct 18
1
How to read data sequentially into R (line by line)?
I have a data set like this in one .txt file (cols separated by !):
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
it contains over 14 000 000 records. Now
2009 Jan 27
3
plot Ticks
Is there a way to force the number of ticks along an axis ?
I read the on-line documentation and tried many combinations of all available parameters from functions
par(), axTicks(), axis(), plot() ... but no luck !
Thank you very much,
Maura
tutti i telefonini TIM!
[[alternative HTML version deleted]]
2009 Mar 18
1
Reading a file line by line - separating lines VS separating columns
Hello all.
I wish to read a large data set into R. My current issue is in getting the
data so that R would be able to access it. Using read.table won't work
since the data is over 1GB in size (and I am using windows XP), so my plan
was to read the file chunk by chunk and each time move it into bigmemory
(I'll play with that when the time will come, maybe ff is better ?!).
I encountered
2010 May 25
2
website address for the pseuso-XLS files
http://gigamail.rossoalice.alice.it/messages/readMessageFrameset.aspx?DeliveryID=ba40cf18-29db-4404-a3ce-af26f760ecf9
Please, paste the website address above shown in your web browser address field.
Make sure the whole string is pasted with no space or any other character.
Telecom couldn't generate more clumsy website addresses .... Sorry for that.
Thank you in advance,
Maura
tutti i
2008 Nov 11
1
R: R: Hidden Markov Models
Thank you for your prompt answer.
The breathing signal observations are the amplitude values as a function of time and phase.
According to our model the hidden states are the different breathing types.
Subjects, whose respiratiion process is regular, are likely to breathe, keeping the same cycle pattern/type,
for many consecutive cycles. therefore dwelling in the same hidden state.
The more
2009 Jun 16
2
R and miRecords
I wonder whether R provides an interface to access miRecords data.
Particularly, I am looking for extracting humans miRNA and target genes sequences.
All such information is stored in there in a set of structured web site pages (http://mirecords.umn.edu/miRecords)
I would greatly appreciate any suggestion even about other data bases from where it is possible to get the same sort of data.
I had a
2010 Mar 31
2
Generative Topographic Map
I tried to use R version of package
I noticed the original MatLab Pckage is much better documented.
I had a look at the R demo code "gtm_demo" and found that variable Y is used in advanced of being created:
I wrote my own few lines as follows:
inDir <- "C:/Documents and Settings/Monville/Alanine Dipeptide/DBP1/DHA"
setwd(inDir)
T <-
2009 Mar 29
4
binary AND operators in R
I cannot find any R function or operator that performs a binary AND operation, as performed by Fortran built-in function "iand".
Ideally either R operator "&" or "&&" should do that. But some tests proved they do not:
> A<- 1
> B <- 2
> A
[1] 1
> B
[1] 2
> as.numeric(A&B)
[1] 1
> as.numeric(A&&B)
[1] 1
The binary
2009 Jan 03
4
passing parameters to an R script
I knowf R functions ca be called passing some parameters.
My first question is: how are parameters passed to R functions ?
Browsing through R archives I found an answer confirming taht parameters can
be passed to the called function by value. I wonder whether passing the parameter
address is possible somehow to allow the function to actually change its value.
My second question is about
2010 May 27
3
how to extract the 1st field from a vector of strings
I have the following vector of strings (shown only the first 3 elements)
> desc[1:3]
[1] "hsa-let-7a MIMAT0000062 Homo sapiens let-7a"
[2] "hsa-let-7a* MIMAT0004481 Homo sapiens let-7a*"
[3] "hsa-let-7a-2* MIMAT0010195 Homo sapiens let-7a-2*"
> is.vector(desc)
[1] TRUE
> A <- unlist(strsplit(desc[1:3], " "))
> A
[1]
2010 Apr 17
4
how to remove one row at a time from a matrix keeping its nrow consistent
After some headache with debugging my script, I finally isolated the problem taht I am going to illustrate in the following example.
I expected matrix nrow to decrease consistently till 1. Instead, when the matrix is left with one row only, its nrow jumps to 2 because the matrix
gets transposed. How come ?
Thank you,
Maura
> B <- c(1,2)
> B <- rbind(B,c(3,4))
> B <-
2010 May 26
2
how to avoid a subset of a matrix to become a column vector
I am assigning subset of a matrix A [n,3] where n>1 to a temporary matrix TMP
I do not know how many rows of A will be assigned to TMP because this is established by a
run-time test.
I expect TMP to be a matrix [m,3], m >=1
But when 1 row only is transferred from A to TMP then TMP becomes [3,1]
rather than [1,3]
How can I avoid this unwanted transpose operation ?
THank you in advance,
2010 Jan 21
2
Updating R on Linux
I know my question has been asked many times. Please, forgive me for asking it once more.
It's time to update R version.
I run R on Windows, Linux, and Mac OS/X.
I think I remember on Windows R comes with the un-installer. So I uninstall it first and then I install the latest version.
On Mac OS I have no experience of updating R ... I think (and hope) all what I have to do is to drag R
icon
2009 Jun 23
2
question about package biomaRt
Can biomaRt connect to data base "http://mirecords.umn.edu" or a branch of it ... for instance the validated miRNAs list ..?
Thank you very much.
Maura
tutti i telefonini TIM!
[[alternative HTML version deleted]]