Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ccard28
    Member
    • Jan 2012
    • 20

    #1

    Help with Cufflinks in command line

    Hello,
    I am new to programming/command line and am having trouble with the simplest of tasks I am sure. I am used to using Galaxy for analysis but I am trying to go towards programming/command line usage. I am trying to run cufflinks via command line but got the following error:

    You are using Cufflinks v2.0.2, which is the most recent release.
    Error: cannot open reference GTF file /--GTF for reading



    Here is my input text into the command line(could have errors but I am not sure):

    cufflinks -G/--GTF /Users/chriscard/Desktop/Galaxy2-\[UCSC_Main_on_Cow__all_mrna_\(genome\)\].gtf /Users/chriscard/Desktop/Galaxy14-\[Tophat_high_fert__accepted_hits\].bam o- /Users/chriscard/Desktop/Command_Line_Output

    I plan on using tophat eventually as the first step to command line data analysis but for now I just tried to pull the .bam file from a tophat run off of one of my successful galaxy runs as well as the .gtf file for the reference mRNA that I want cufflinks to use(this is successful via Galaxy). Is there something wrong with my input text into command line? Do I need a different mRNA .gtf file? Sorry if this seems like a very simple task to be having problems with, trying to dive head first into this command line and coding stuff via a couple books I have started reading.

    Thank You,
    Chris
  • Bukowski
    Senior Member
    • Jan 2010
    • 388

    #2
    Good on you for leaving Galaxy and going for it on the command line.

    The reason you're seeing this error is actually explained in the error, but if you're not used to command line work it won't seem that way.

    -G/--GTF

    is being interpreted as passing the 'argument' of /--GTF to the 'flag' -G

    When you've read the command line you have assumed that you need -G/--GTF because that's what the manual says (no shame in taking it literally) however -G is the same as --GTF and the "/" just means 'use one or the other'.

    You may still run into errors by just using one flag, you seem to be also trying to escape all your bracketed characters (preceding ) and ] with \) and I'm not sure why you feel you need to do this. I'd try avoiding having filenames with these kind of characters in. I'm wondering if you're doing this because it's how the command line appears when you're running in Galaxy?

    Comment

    • GenoMax
      Senior Member
      • Feb 2008
      • 7142

      #3
      Chris,

      Unix commands in general will have the following format:

      Code:
      name_of_command [-option 1 -option 2 -option n]
      Some of the commands may not need any options at all.

      Most of the times if you type the command, with -h or --help option, then you will get a list of all the possible arguments a command will accept, make a note of the default parameters shown for various cufflinks options by running the following.
      Code:
      cufflinks --help
      Check out this guide that will show you how to run the Tophat/Cufflinks suite of commands written by the program's author: http://www.nature.com/nprot/journal/....2012.016.html

      Comment

      • ccard28
        Member
        • Jan 2012
        • 20

        #4
        I can get cufflinks to run with just this in the command line: cufflinks highferttophat.bam

        However when I try and add the reference genome option in which I am typing this into the command line:

        new-hostesktop chriscard$ cufflinks [--GTF cowallmrna.gtf] highferttophat.bam


        I get this message which I am not sure how to fix

        You are using Cufflinks v2.0.2, which is the most recent release.
        open: No such file or directory
        File [--GTF doesn't appear to be a valid BAM file, trying SAM...
        Error: cannot open alignment file [--GTF for reading

        This is the same gtf file I had been using successfully as a reference gtf file to use for cufflinks through Galaxy. It seems like it has a problem with the file but I was wondering if maybe my option typing in the command line has errors I am failing to recognize? Even though this is the reference file I am using for galaxy does it need to be a different format through command line? The file type in the manual is gtf which is what this is but I keep getting this error.


        Sorry again, I am very new to this. I appreciate all of the help I have gotten and any more anyone can offer.

        Thank You,
        Chris

        Comment

        • kcchan
          Senior Member
          • Jul 2012
          • 186

          #5
          You don't need the square brackets, so it should look something like this:
          cufflinks --GTF cowallmrna.gtf highferttophat.bam

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          13 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          21 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-13-2026, 09:56 AM
          0 responses
          19 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-09-2026, 11:14 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Working...