Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SeqTroubles
    Member
    • Sep 2016
    • 20

    #1

    faidx usage and non specific hits

    Hi All,

    I am using pyfaidx to extract fasta sequence from a multifasta file using a list of locus tags.

    List.txt
    JFCCLHHB_00692
    CKEMPBAI_00693
    FBNBCCDE_01742
    OMPPMJLG_02124
    GKEHKBJF_02074

    file.fasta
    >NOLHFCLD_00001 Magnesium-transporting ATPase, P-type 1
    atgc
    >NOLHFCLD_00003 Serine transporter
    atgc

    my command is
    xargs faidx file.fasta < list.txt > out.fas

    my problem is that faidix is being pretty non-specific in the output. Im getting hits back which I know I shouldnt and I was wondering would the underscore have anything to do with this?
    Last edited by SeqTroubles; 06-21-2017, 05:54 AM.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Are you referring to samtools faidx or something else?

    Comment

    • SeqTroubles
      Member
      • Sep 2016
      • 20

      #3
      Originally posted by GenoMax View Post
      Are you referring to samtools faidx or something else?
      pyfaidx. Ill change my description now.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Tested and appears to work fine. Fasta ID's need to match exactly (unless you want to try reg exp/wild cards).

        Code:
        $ more list.fa
        >JFCCLHHB_00692
        AGCTCGAT
        >CKEMPBAI_00693
        ACGCTG
        >FBNBCCDE_01742
        ACGATCAC
        >OMPPMJLG_02124
        ACGCTCGCTGC
        >GKEHKBJF_02074
        AGCTCGC
        
        $ more list.txt
        JFCCLHHB_00692
        CKEMPBAI_00693
        GKEHKBJF_02074
        
        $ xargs faidx list.fa < list.txt
        >JFCCLHHB_00692
        AGCTCGAT
        >CKEMPBAI_00693
        ACGCTG
        >GKEHKBJF_02074
        AGCTCGC

        Comment

        • SeqTroubles
          Member
          • Sep 2016
          • 20

          #5
          Originally posted by GenoMax View Post
          Tested and appears to work fine. Fasta ID's need to match exactly (unless you want to try reg exp/wild cards).

          Code:
          $ more list.fa
          >JFCCLHHB_00692
          AGCTCGAT
          >CKEMPBAI_00693
          ACGCTG
          >FBNBCCDE_01742
          ACGATCAC
          >OMPPMJLG_02124
          ACGCTCGCTGC
          >GKEHKBJF_02074
          AGCTCGC
          
          $ more list.txt
          JFCCLHHB_00692
          CKEMPBAI_00693
          GKEHKBJF_02074
          
          $ xargs faidx list.fa < list.txt
          >JFCCLHHB_00692
          AGCTCGAT
          >CKEMPBAI_00693
          ACGCTG
          >GKEHKBJF_02074
          AGCTCGC
          Thanks GenoMax.

          I have two lists of tags and one list work perfect but when I execute the second it would appear its just copying all the information from the input fasta. Really weird. Ive already looked over all my data to ensure its valid so I cannot see where the issue is at present.

          In actuality Im running a loop to execute this search looks like
          for f in *.fna; do
          f=$(basename $f .fna); xargs faidx $f.fna < tags.txt > $PWD/out/$f.fas; done
          Last edited by SeqTroubles; 06-21-2017, 08:34 AM.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Examine your ID file (something like cat -vet yourFile) to see if there are any non-printable characters that could be causing potential issues.

            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
            14 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...