Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

256 results for “from:Ana Marija”

question about system.file()
Ana Marija · Apr 10, 2020 · r-help

Hello, I would like to try this example in this link: https://www.rdocumentation.org/packages/SNPRelate/versions/1.6.4/topics/snpgdsBED2GDS for example this line: bed.fn <- system.file("extdata", "plinkhapmap.bed.gz", package="SNPRelate") I have in...

how to add count to pie chart legend
Ana Marija · Aug 15, 2022 · r-help

Hi All, I have df like this: > df# A tibble: 2 ? 4 V1 n perc labels <chr> <int> <dbl> <chr> 1 Yes 8 0.364 36% 2 No 14 0.636 64% I am making pie chart like this: library...

unable to remove NAs from a data frame
Ana Marija · Sep 16, 2021 · r-help

Hi All, I have lines in file that look like this: > df[14509227,] SNP A1 A2 freq b se p N 1: <NA> <NA> <NA> NA NA NA NA NA data looks like this: > head(df) SNP A1 A2 freq...

how to create a new column from two columns with conditions
Ana Marija · Apr 29, 2020 · r-help

Hello, I have a data frame like this: > head(b) FID IID FLASER PLASER 1: fam1000 G1000 1 1 2: fam1001 G1001 1 1 3: fam1003 G1003 1 2 4: fam1005 G1005 1 1 5: fam1009 G1009 2 1 6...

can not extract rows which match a string
Ana Marija · Oct 3, 2019 · r-help

Hello, I have a dataframe (t1) with many columns, but the one I care about it this: > unique(t1$sex_chromosome_aneuploidy_f22019_0_0) [1] NA "Yes" it has these two values. I would like to remove from my...

how to create a new column from two columns with conditions
Ana Marija · Apr 29, 2020 · r-help

Thanks, I did this: b$PHENO<- ifelse(b$FLASER ==2 | b$PLASER ==2, 2, 1) On Wed, Apr 29, 2020 at 2:36 PM Ivan Krylov <krylov.r00t at gmail.com> wrote: > > On Wed, 29 Apr 2020 14:19:18...

how to read a database in R?
Ana Marija · Feb 1, 2020 · r-help

Hi Ivan Thanks for getting back to me. Can you please share with me some code I would use to see what is in my database? On Sat, 1 Feb 2020 at 06:19, Ivan Krylov <krylov.r00t at gmail...

How to extract information from .Rdata format
Ana Marija · Jul 31, 2020 · r-help

Hi Bert, it gives me this: > a=load("paired_example.Rdata") > str(a) chr [1:3] "rawdata" "treatment" "patient" I don't know how to extract "treatment" for example in a data frame. I tried this but of no help...

how to add p values to bar plot?
Ana Marija · Sep 27, 2019 · r-help

Hi, I created a bar plot with this code: library(ggplot2) df <- data.frame("prop" = c(7.75,70.42), "Name" = c("All Genes","RG Genes")) p<-ggplot(data=df, aes(x=Name, y=prop,fill=Name)) + geom_bar(stat...

Call `rlang::last_error()` to see a backtrace
Ana Marija · Jul 10, 2019 · r-help

Hello, I am trying to use this program: https://github.com/kenhanscombe/ukbtools > my_ukb_data[1:3,1:3] eid sex_f31_0_0 year_of_birth_f34_0_0 1 1000017 Female 1938 2 1000025 Female 1951 3...

if else statement
Ana Marija · May 4, 2020 · r-help

Hello, I have a data frame like this: > head(b) FID IID FLASER PLASER 1: fam1000 G1000 1 1 2: fam1001 G1001 1 1 3: fam1003 G1003 1 2 4: fam1005 G1005 1 1 5: fam1009 G1009 NA 2 6...

how do I add text lables on QQ plot
Ana Marija · Mar 11, 2020 · r-help

Thanks for getting back to me but I would need this text labels added in this particular instance On Wed, 11 Mar 2020 at 19:37, Abby Spurdle <spurdle.a at gmail.com> wrote: > > and I would like to get...

how to quantify outliers on multi-dimensional scaling plot?
Ana Marija · Mar 31, 2021 · r-help

Hello, I am in process of writing a grant where I am explaining my planned methylation analysis using R software "minfi". In the text of the grant I am mentioning looking for samples containing outliers in the multi-dimensional scaling...

how to replace values in a named vector
Ana Marija · Sep 14, 2020 · r-help

sorry not replace with NA but with empty string for a name, for example for example this: > geneSymbol["Ku8QhfS0n_hIOABXuE"] Ku8QhfS0n_hIOABXuE "MACC1" would go when I subject it to > geneSymbol["Ku8QhfS0n_hIOABXuE"] Ku8QhfS0n_hIOABXuE On Mon, Sep 14, 2020...

Error: Cannot use `+.gg()` with a single argument.
Ana Marija · May 7, 2020 · r-help

Hello, I got this error: Error: Cannot use `+.gg()` with a single argument. Did you accidentally put + on a new line? After running this: data(murders) library(ggplot2) library(dplyr) library(ggplot2) ggplot(data=murders) #define the slope of the...

how to filter variables which appear in any row but do not include
Ana Marija · Jun 3, 2020 · r-help

Hello. I am trying to filter only rows that have ANY of these variables: E109, E119, E149 so I did: controls=t %>% filter_all(any_vars(. %in% c("E109", "E119","E149"))) than I checked what I got: > s0 <- sapply(controls...

How to only show two numbers on bar_plot with ggplot
Ana Marija · May 22, 2020 · r-help

I resolved it not elegantly with: d=as.numeric(as.character(e$pheno)) ed<-ggplot(e) + geom_bar(aes(x = ESRD, fill = factor(pheno,labels=c("control","case"))))+scale_fill_manual(values=c("#56B4E9","#E7B800"))+labs(fill="pheno")+scale_x...

text annotation on Manhattn plot in qqman
Ana Marija · May 19, 2020 · r-help

Hello, I am making manhattan plot with: library(qqman) manhattan(a, chr="CHR", bp="BP", snp="SNP", p="P",annotatePval = 0.0001) and I would like to annotate these two SNPs which are above the threshold so that they have...

How to stack two Stack manhattan plots?
Ana Marija · Jun 11, 2020 · r-help

Hello, I tried your code and this is what I got I really need two groups side by side shown per chromosome as it is here: https://imgur.com/a/pj40c on the image there are 4 groups I do...

Error in plot.window(...) : need finite 'ylim' values
Ana Marija · Jun 10, 2020 · r-help

Hello, I do have a file like this: head M3.assoc.logistic.C CHR SNP BP P 1 1:785989:T:C 785989 0.4544 1 1:785989:T:C 785989 0.689 1 1:1130727:A:C 1130727 0...

Can't find what you're looking for? Try searching with Google .