Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

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

    Comment


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

      Comment


      • #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


        • #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


          • #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

            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Yesterday, 08:47 AM
            0 responses
            16 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            60 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            60 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            54 views
            0 likes
            Last Post seqadmin  
            Working...
            X