Giter Club home page Giter Club logo

fssemr's Introduction

fssemR

CRAN status CRAN download

fssemR is a package that ultilizes the Proximal Alternating Linearized Maximal to solve the non-convex non-smooth jointly fused sparse structrual equation model.

Installation

fssemR package contains a lot of necessary scripts to analyze large dataset such as microarray and SNP data from GEO database, so it has not been submitted to CRAN yet for these non-standard directory. To install fssemR, you need a C++ compiler such as g++ or clang++ with C++11 feature, and for Windows users, the Rtools software is needed (unless you can configure the toolchain by yourself).

The installation follows the typical way of R packages on Github:

library(devtools)
install_github("Ivis4ml/fssemR")

Now, fssemR package is uploaded on CRAN. So you will install it via CRAN

install.packages("fssemR")

Vignette

fssemR-introduction

Citation

Xin Zhou, Xiaodong Cai, Inference of differential gene regulatory networks based on gene expression and genetic perturbation data, Bioinformatics, , btz529, https://doi.org/10.1093/bioinformatics/btz529

Update

Upgrade to Eigen 0.3.4 compatible

Acknowledgement

Thank should go to Yilun Zhang [email protected]/[email protected] for his contribution to the optimization for this package in math and implementation.

fssemr's People

Contributors

ivis4ml avatar tomcat123a avatar

Stargazers

Enrique avatar  avatar Jimmy Briggs avatar ZZX avatar

Watchers

 avatar

fssemr's Issues

std::bind2nd is deprecated (See CRAN check results)

This concerns packages

Boom MCMCpack MasterBayes OpenMx ProFit Quartet RMariaDB RPostgres
RSQLite Rankcluster RcppQuantuccia Rlgt Rmalschains Ryacas StereoMorph
TDA bio3d bioacoustics bnclassify catSurv chngpt dpmixsim ecp episode
fssemR gof goftte hesim highlight jiebaR jmotif kernlab lidR multinet
oem phreeqc recurse rgl rlas robfilter sbart securitytxt spiderbar vennLasso

and almost all packages including headers from StanHeaders:

.../StanHeaders/include/stan/math/prim/mat/err/is_lower_triangular.hpp:25:27:
warning: 'ptr_fun<double, double>' is deprecated [-Wdeprecated-declarations]

clang/libc++ 9 has started to warn about these deprecated (in C++11)
functions, as seen in the CRAN results pages for fedora-clang.

Please take a look at your code and remove their usage at the next
update. C++11 is the default as from R 3.6.0, but if you want the
package to be usable with earlier versions and do not already do so,
specify C++11 or later (see 'Writing R Extensions').

--
Brian D. Ripley, [email protected]
Emeritus Professor of Applied Statistics, University of Oxford

05_DataprocLungCancer.R fail to reproduce SNPs imputation with synbreed

Hi, i was trying to reproduce the data of the paper but i get stuck at the imputation step (which is the 3 step of the file "05_DataprocLungCancer.R"). I would appreciate if you could help me fix the issue that i found so that i can test the method and later use it with my data.

The specific part of the code is the following

###remove unchanged SNP and all Missing NA
###impute missing NA in SNP matrix
SNPvarmat = t(SNPvarmat)
SNPmap = SNPmap[colnames(SNPvarmat),c(2,3)]
colnames(SNPmap) = c("chr", "pos")
SNPmap[,2] = as.numeric(SNPmap[,2])
##dim(SNPvarmat) ## [1] 122 930002
PData2 = phenoData(gse2$eset) # SNP
SNPPheno = PData2@data[rownames(SNPvarmat), c(10, 11)]
SNPPheno[,1] = as.numeric(SNPPheno[,1])
SNPPheno[,2] = 2 - as.numeric(SNPPheno[,2])
colnames(SNPPheno) = c("Gender", "Status")
SNPData = create.gpData(pheno = SNPPheno, geno = SNPvarmat, map = SNPmap, map.unit = "bp") <-- PROBLEM HERE
SNPImputed = codeGeno(SNPData, impute=TRUE, impute.type="beagle", cores = 4) <-- CRASHES HERE
SNPvarmat = t(SNPImputed$geno)

I think the issue is that

SNPPheno[,1] = as.numeric(SNPPheno[,1])
SNPPheno[,2] = 2 - as.numeric(SNPPheno[,2])

are incorrect because SNPPheno have 2 columns that are the gender (which is only female) and the status (which is normal/tumor) are strings and the conversion as.numeric leads to R just filling the columns with NAs while i think synbreed wants the phenotype and not a data.frame with all NAs, as per create.gpData(pheno = SNPPheno,

The data to create SNPPheno are taken from the GEOdatabase file "GSE33356-GPL6801_series_matrix.txt.gz" just as it's already written on the code.
The values inside of SNPPheno after SNPPheno = PData2@data[rownames(SNPvarmat), c(10, 11)]

head(SNPPheno)
characteristics_ch1 characteristics_ch1.1
GSM824988 gender: female tissue: normal lung tissue
GSM824989 gender: female tissue: cancer lung tissue
GSM824990 gender: female tissue: normal lung tissue
GSM824991 gender: female tissue: cancer lung tissue
GSM824992 gender: female tissue: normal lung tissue
GSM824993 gender: female tissue: cancer lung tissue

So when i do

SNPPheno[,1] = as.numeric(SNPPheno[,1])
SNPPheno[,2] = 2 - as.numeric(SNPPheno[,2])

I get a warning message

SNPPheno[,1] = as.numeric(SNPPheno[,1])
Warning message:
NAs introduced by coercion
SNPPheno[,2] = 2 - as.numeric(SNPPheno[,2])
Warning message:
NAs introduced by coercion

head(SNPPheno)
characteristics_ch1 characteristics_ch1.1
GSM824988 NA NA
GSM824989 NA NA
GSM824990 NA NA
GSM824991 NA NA
GSM824992 NA NA
GSM824993 NA NA

I hope for a reply, thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.