Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • #16
    Ah - blank lines at the end of the file can be easily overlooked.

    In principle I believe that faidx can cope with blank lines *between* records, but I haven't made time to work out the required code changes to do this. It would probably save some general aggravation though

    Comment


    • #17
      I had the same sort of segmentation fault. There were no blank lines in my file though. It was apparently due to one of my sequences being >65535 bp (though I don't know why that should matter).

      Maubp's biopython code took care of it nicely. Thanks!

      Comment


      • #18
        Originally posted by maubp View Post
        Just for anyone interested here is the Biopython equivalent:

        Code:
        from Bio import SeqIO
        SeqIO.convert("inputfilename.fas", "fasta", "outputfilename.fas", "fasta")
        The convert function returns the number of records if you wanted that information.
        Thank you for this. Just ran into this problem.

        Comment


        • #19
          Originally posted by baohua100 View Post
          $ ./samtools faidx /media/Poplar/baohua/genome/poplar_genome.fa
          [fai_build_core] different line length in sequence 'scaffold_28'.
          The problem with scaffold_28 in this file was the same problem that was reported here. It has now been fixed, and the fix will appear in samtools (and htslib) 1.3.

          Comment


          • #20
            Easiest way to fix this is to use seqret in emboss. Just convert the fasta file to ncbi style fasta and it automatically fixes the issue.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Recent Innovations in Spatial Biology
              by seqadmin


              Spatial biology is an exciting field that encompasses a wide range of techniques and technologies aimed at mapping the organization and interactions of various biomolecules in their native environments. As this area of research progresses, new tools and methodologies are being introduced, accompanied by efforts to establish benchmarking standards and drive technological innovation.

              3D Genomics
              While spatial biology often involves studying proteins and RNAs in their...
              Yesterday, 07:30 PM
            • seqadmin
              Advancing Precision Medicine for Rare Diseases in Children
              by seqadmin




              Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
              12-16-2024, 07:57 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 12-30-2024, 01:35 PM
            0 responses
            21 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-17-2024, 10:28 AM
            0 responses
            41 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-13-2024, 08:24 AM
            0 responses
            55 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-12-2024, 07:41 AM
            0 responses
            40 views
            0 likes
            Last Post seqadmin  
            Working...
            X