Coder Social home page Coder Social logo

Comments (11)

tiagochst avatar tiagochst commented on June 30, 2024 2

You might be able to use TCGAbilinks to download the data and use with maftools, an example is in the bottom page.
https://www.bioconductor.org/packages/devel/bioc/vignettes/TCGAbiolinks/inst/doc/mutation.html

library(TCGAbiolinks)
library(maftools)
maf <- GDCquery_Maf("SKCM", pipelines = "muse") %>% read.maf(removeSilent = TRUE, useAll = FALSE)

from maftools.

tiagochst avatar tiagochst commented on June 30, 2024 1

@PoisonAlien I'm not sure you were going to create a GUI, but I just added your tool to TCGAbiolinksGUI
Your package is awesome, nice work!

Youtube Video

from maftools.

PoisonAlien avatar PoisonAlien commented on June 30, 2024

Hi,

I just downloaded SKCM from GDC (I believe this is the one : https://gdc-portal.nci.nih.gov/files/49540f53-3228-4a65-8854-ebd2f4a8f5ce ) and it works fine on my Mac. However I guess you're on Windows and the input file is gzipped ? Can you uncompress gz file to plain text and try again ?

from maftools.

rolfhaut avatar rolfhaut commented on June 30, 2024

Hi,

That was indeed the problem.
Thanks
David

from maftools.

krcoombes avatar krcoombes commented on June 30, 2024

I'm not convinced that this issue should be closed without changing either the code or the documentation. The man page for 'read.maf' says that the 'maf' argument is a
"tab delimited MAF file. File can also be gz compressed."
But (at least on Windows as far as I can determine), whenever I pass in a gzipped MAF file, I get the same error about more columns than column names. If I first manually gunzip the file, it works just fine. I view the failure of the performance to match the documentation as a still-open bug.

from maftools.

PoisonAlien avatar PoisonAlien commented on June 30, 2024

Hi,
Yes you are right about it. I will try to fix it by weekend. I guess its because the first line of input file is a comment (generally indicating MAF version) and read.csv is struggling to handle it.

from maftools.

krcoombes avatar krcoombes commented on June 30, 2024

from maftools.

PoisonAlien avatar PoisonAlien commented on June 30, 2024

There is not much difference between table and csv reader, hence I used read.csv. Regarding second point yes, even I am not sure about whats going on. skip=1 will skip header if there are no comment lines, better way is to use comment.char = "#". Most of the maf files I checked are on either linux or MacOS, I will check again on windows machines and fix it soon.

from maftools.

zayni avatar zayni commented on June 30, 2024

Hi,
getting errors this morning. I am a Mac User

reading maf..
Error in data.table::fread(input = maf, sep = "\t", stringsAsFactors = FALSE, :
Input is either empty or fully whitespace after the skip or autostart. Run again with verbose=TRUE.
It was working well yesterday. Not sure what is going on?

from maftools.

rafalcode avatar rafalcode commented on June 30, 2024

worth mentioning you need
library(magrittr)
for the "%>%"

from maftools.

PoisonAlien avatar PoisonAlien commented on June 30, 2024

wow this is amazing! Thank you for the effort and making maftools a part of TCGABiolinks :)

from maftools.

Related Issues (20)

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.