Header Leaderboard Ad

Collapse

Add a new line after the last file recording

Collapse

Announcement

Collapse

SEQanswers June Challenge Has Begun!

The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!

For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Add a new line after the last file recording

    Dear all,

    I used ShortRead package to filter the data and then saved as fastq file. But when I run the qa function again there is error in .local(dirPath, pattern, ...): > > ShortRead internal: too many 'snap' entries.

    In the bioc-sig-sequencing mailing list, Martin already mentioned it might be due to the missing last line as separator.


    But I do not know how to add a new line after the last line in my file. Does anyone give me some hints?

    Many thanks in advance!
    Wei

  • #2
    You could do it in Perl:

    Code:
    open OUTFILE, ">>file.fastq" or die $!; # open for append
    print OUTFILE "\n";
    close OUTFILE;

    Comment


    • #3
      Thank you so much nodonb! That works! even I do not know the meaning of each code.

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 06-01-2023, 08:56 PM
      0 responses
      9 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 06-01-2023, 07:33 AM
      0 responses
      9 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-31-2023, 07:50 AM
      0 responses
      4 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-26-2023, 09:22 AM
      0 responses
      11 views
      0 likes
      Last Post seqadmin  
      Working...
      X