Coder Social home page Coder Social logo

File uploading about maftools HOT 11 CLOSED

poisonalien avatar poisonalien commented on August 16, 2024
File uploading

from maftools.

Comments (11)

PoisonAlien avatar PoisonAlien commented on August 16, 2024

Hi,

Its hard to say without a reproducible example. Can your share your file if you're okay with it ? or can you try to read using data.table::fread(maf_file) and see if you get the same error ? Is the file same as yesterday, error says file might be empty. Can you check the contents ?

from maftools.

zayni avatar zayni commented on August 16, 2024

Error in data.table::fread(coad.maf) :
Input is either empty or fully whitespace after the skip or autostart. Run again with verbose=TRUE.
I looked at the file. It is fine. Same as yesterday TCGA..COAD mutect file

Thanks a lot!
zayni

from maftools.

PoisonAlien avatar PoisonAlien commented on August 16, 2024

Is it compressed ? If so, can you decompress and try again ? Can you upload it here ?

from maftools.

zayni avatar zayni commented on August 16, 2024

It is not compressed at all. It is larger than 10MB. But it has all 32 fields of TCGA file
Thanks for your time

Zayni

from maftools.

zayni avatar zayni commented on August 16, 2024

Here is the link

https://portal.gdc.cancer.gov/files/706d5716-be1e-4482-a867-61dec69557c8

from maftools.

PoisonAlien avatar PoisonAlien commented on August 16, 2024

Hi,

Just downloaded the file and checked on macOS (Sierra) and Ubuntu, works fine for me.

coad = read.maf(maf = '~/Downloads/gdc_download_20170410_034802/706d5716-be1e-4482-a867-61dec69557c8/TCGA.COAD.mutect.706d5716-be1e-4482-a867-61dec69557c8.somatic.maf.gz')

can you post your command ?

from maftools.

zayni avatar zayni commented on August 16, 2024

library("maftools")

suppressPackageStartupMessages(require(maftools))
coad.maf = system.file(maf ='~/Downloads/gdc_download_20170410_034802/706d5716-be1e-4482-a867-61dec69557c8/TCGA.COAD.mutect.706d5716-be1e-4482-a867-61dec69557c8.somatic.maf.gz', package = 'maftools')
coad = read.maf(maf = laml.maf, removeSilent = TRUE, useAll = FALSE)
Error in is.data.frame(x = maf) : object 'laml.maf' not found
coad = read.maf(maf = coad.maf, removeSilent = TRUE, useAll = FALSE)
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.

from maftools.

zayni avatar zayni commented on August 16, 2024

Thanks a lot !

from maftools.

PoisonAlien avatar PoisonAlien commented on August 16, 2024

Okay! you don't have to run first line system.file, since it points to example maf file which comes with the package. For your coad maf, you just need to provide downloaded file name (with path) to read.maf.

Try this:

coad = read.maf(maf = '~/Downloads/gdc_download_20170410_034802/706d5716-be1e-4482-a867-61dec69557c8/TCGA.COAD.mutect.706d5716-be1e-4482-a867-61dec69557c8.somatic.maf.gz', removeSilent = TRUE, useAll = FALSE)

from maftools.

zayni avatar zayni commented on August 16, 2024

Awesome ! It worked. Thanks you so much

from maftools.

PoisonAlien avatar PoisonAlien commented on August 16, 2024

No problem :)

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.