Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • kurban910
    Member
    • Jul 2014
    • 58

    #31
    Originally posted by GenoMax View Post
    Is the bcftools executable in the directory you are currently in? Have you tried to "locate" it and provide the full path for it like you did for vcfutils.pl?

    Is your my.var.bcf file in the current directory?

    In future, start a new thread when you have a new question.
    1. bcftools is executable in my current directory.

    kurban@kurban-X550VC:~/Desktop/SNPs/CD$ bcftools

    Program: bcftools (Tools for data in the VCF/BCF formats)
    Version: 0.1.17-dev (r973:277)

    Usage: bcftools <command> <arguments>

    Command: view print, extract, convert and call SNPs from BCF
    index index BCF
    cat concatenate BCFs
    ld compute all-pair r^2
    ldpair compute r^2 between requested pairs


    2.i have tried to provide full path of bcftools:
    kurban@kurban-X550VC:~/Desktop/SNPs/CD$ /usr/bin/bcftools view my.var.bcf | /usr/share/samtools/vcfutils.pl varFilter - > my.var-final.vcf
    it says:
    open: No such file or directory
    and file my.var.bcf is in my current diractory.

    but it is still not working.

    Comment

    • GenoMax
      Senior Member
      • Feb 2008
      • 7142

      #32
      Are you sure bcftools in in your current directory (~/Desktop/SNPs/CD from what I can see above)? You seem to be running the copy that is in /usr/bin (in the set of commands in #2).

      Have you verified that my.var.bcf file is non-zero bytes (i.e. there is something in it)?

      Can you use [ CODE] (remove the leading space before CODE) put your commands here [/CODE] to make the commands you are pasting clear (enclose them in CODE tags on both sides like I have shown). Otherwise it is difficult to decipher if there are spaces in wrong spot in your command line.
      Last edited by GenoMax; 08-08-2014, 04:31 AM.

      Comment

      • blakeoft
        Member
        • Oct 2013
        • 79

        #33
        kurban910, I just ran
        Code:
        bcftools view jim.bcf
        and I don't have any file called jim.bcf. It gave me this:
        Code:
        open: No such file or directory
        This makes me think that you have the wrong name. Be careful with 1's and l's, -'s and _'s, etc -- it's easy to get these confused. Heck, I even get .'s and _'s confused sometimes. In the directory that the bcf file is located, can you execute:
        Code:
        ls $PWD/*.bcf
        and copy the bcf file's name exactly as it appears, including the full path, and then try running your command again?

        Comment

        • kurban910
          Member
          • Jul 2014
          • 58

          #34
          Originally posted by blakeoft View Post
          kurban910, are you sure that you have the right name for the bcf file? It looks to me like the command is correct.
          yes, i am sure the file name is right

          Comment

          • kurban910
            Member
            • Jul 2014
            • 58

            #35
            Originally posted by GenoMax View Post
            Are you sure bcftools in in your current directory (~/Desktop/SNPs/CD from what I can see above)? You seem to be running the copy that is in /usr/bin (in the set of commands in #2).

            Have you verified that my.var.bcf file is non-zero bytes (i.e. there is something in it)?

            Can you use [ CODE] (remove the leading space before CODE) put your commands here [/CODE] to make the commands you are pasting clear (enclose them in CODE tags on both sides like I have shown). Otherwise it is difficult to decipher if there are spaces in wrong spot in your command line.
            u r right ,thanks. i will put the commends in the code box next time. and yes, my.var.bcf file is around 7.6 BM.

            and for your first question, bcftools is not in the current directory i am in, but its executable from here.

            Comment

            • kurban910
              Member
              • Jul 2014
              • 58

              #36
              Originally posted by blakeoft View Post
              kurban910, I just ran
              Code:
              bcftools view jim.bcf
              and I don't have any file called jim.bcf. It gave me this:
              Code:
              open: No such file or directory
              This makes me think that you have the wrong name. Be careful with 1's and l's, -'s and _'s, etc -- it's easy to get these confused. Heck, I even get .'s and _'s confused sometimes. In the directory that the bcf file is located, can you execute:
              Code:
              ls $PWD/*.bcf
              and copy the bcf file's name exactly as it appears, including the full path, and then try running your command again?
              thank you for your time guys , now i find out not just this one, other commends also r not exacted in my terminal , ubuntu 12.04 some times isn’t stable . after i reinstall the system i will try again.

              Comment

              • maubp
                Peter (Biopython etc)
                • Jul 2009
                • 1544

                #37
                Originally posted by maubp View Post
                If you did want to convert the FASTQ to an unaligned SAM or BAM file, try this:
                http://picard.sourceforge.net/comman...tml#FastqToSam
                I need to do this locally, and since we didn't have Picard installed but do have Biopython (yes, I'm biased ), I wrote a simple Python script to convert paired FASTQ files into unmapped SAM reads (which you can pipe into samtools to get as a BAM file):



                I would expect this to be slower than a dedicated tool, so probably not suitable for a high throughput pipeline - but it should be fine for a one-off analysis.

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                  by SEQadmin2



                  Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                  ...
                  07-09-2026, 11:10 AM
                • SEQadmin2
                  Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                  by SEQadmin2



                  Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                  There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                  07-08-2026, 05:17 AM
                • GATTACAT
                  Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                  by GATTACAT
                  Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                  07-01-2026, 11:43 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 07-13-2026, 10:26 AM
                0 responses
                20 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-09-2026, 10:04 AM
                0 responses
                30 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-08-2026, 10:08 AM
                0 responses
                20 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-07-2026, 11:05 AM
                0 responses
                34 views
                0 reactions
                Last Post SEQadmin2  
                Working...