Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • mslider
    replied
    --
    very usefull script;
    BTW, i'm just looking for a script to extract the reads corresponding to the tracking_id in
    gene_exp.diff file.
    I don't know how to easily do that.

    thank u

    Leave a comment:


  • Krish_143
    replied
    Thanks foxriverlin, _V1.1 Works fine for full genome.

    Leave a comment:


  • foxriverlin
    replied
    Thank you Krish_143. New problem concerning one full genome (No remaining scaffolds/contigs) has been fixed. Please refer to the version 1.1.
    Attached Files

    Leave a comment:


  • vinay427
    replied
    It worked perfectly! Thank you so much, it really saved my day.

    Leave a comment:


  • vinay427
    replied
    Originally posted by foxriverlin View Post
    The problem was caused by header line of .fa genome file. Mine is little bit different than yours, doesn't including length=***. I fixed that problem and uploaded a new version of script which should work. Thanks for pointing out the bug in my script!

    Ruolin
    I should be thanking you! Anyway, let me try this out. I'll report back soon. Thanks again!

    Leave a comment:


  • foxriverlin
    replied
    Originally posted by Krish_143 View Post
    I have mutli-scaffold fasta in my genome, then how to get fasta in this case.. i have to give each scaffold at every time !!
    I posted a new version. Please let me know if the new one is still not working.

    Leave a comment:


  • foxriverlin
    replied
    Originally posted by vinay427 View Post
    If I understand what you're saying, yes, I used the same genome for alignment. My .diff and .fa files have both contigs and scaffolds in them, but the parts I trimmed from the top may have looked like that. For example, there are also contigXXXXXX headers in my .fa genome file.
    The problem was caused by header line of .fa genome file. Mine is little bit different than yours, doesn't including length=***. I fixed that problem and uploaded a new version of script which should work. Thanks for pointing out the bug in my script!

    Ruolin
    Attached Files

    Leave a comment:


  • vinay427
    replied
    Originally posted by foxriverlin View Post
    I see the problem. Your Refbeet.fa is a muti-scaffold fasta file. In other words, it uses scaffold as each sequence unit. However, in your gene_exp_yes.diff the locus is contig100180:871-997. The format is different. Did you use the same file, "Refbeet.fa" for alignment? In my script it will use exactly the locus information in gene_diff to extract the nucleotide sequence in reference.fa. If they do not match with each other, it would fail.
    If I understand what you're saying, yes, I used the same genome for alignment. My .diff and .fa files have both contigs and scaffolds in them, but the parts I trimmed from the top may have looked like that. For example, there are also contigXXXXXX headers in my .fa genome file.

    Leave a comment:


  • Krish_143
    replied
    I have mutli-scaffold fasta in my genome, then how to get fasta in this case.. i have to give each scaffold at every time !!

    Leave a comment:


  • foxriverlin
    replied
    Originally posted by Krish_143 View Post
    Hi foxriverlin,

    Did you make any changes after extracting "yes" using "grep" command like header or some thing else. Script was executing but still it seems an empty file.

    Thanks.
    No I didn't make any changes after "grep". If you use "grep" before running the extract.pl, the header line should have been removed already. But if the header line exist, it also works. Maybe you ran into the same issue as vinay427 did. If not, please send me part of your input file to have a look at.

    Leave a comment:


  • foxriverlin
    replied
    Originally posted by vinay427 View Post
    Sent, thanks again!
    I see the problem. Your Refbeet.fa is a muti-scaffold fasta file. In other words, it uses scaffold as each sequence unit. However, in your gene_exp_yes.diff the locus is contig100180:871-997. The format is different. Did you use the same file, "Refbeet.fa" for alignment? In my script it will use exactly the locus information in gene_diff to extract the nucleotide sequence in reference.fa. If they do not match with each other, it would fail.

    Leave a comment:


  • vinay427
    replied
    Originally posted by foxriverlin View Post
    How large is your *_gene.diff? It shouldn't have taken 20 minutes. Can you send me part of your input files? Just for a testing. [email protected]
    Sent, thanks again!

    Leave a comment:


  • Krish_143
    replied
    Hi foxriverlin,

    Did you make any changes after extracting "yes" using "grep" command like header or some thing else. Script was executing but still it seems an empty file.

    Thanks.

    Leave a comment:


  • foxriverlin
    replied
    Originally posted by vinay427 View Post
    Thanks for the quick reply! In fact, I had made a "yes" file using grep for a Python script I was trying to make. Anyway, I tried that, and after a while of working (at least more than 20 minutes) it gave me this:
    Code:
    Write failed: Broken pipe
    How large is your *_gene.diff? It shouldn't have taken 20 minutes. Can you send me part of your input files? Just for a testing. [email protected]

    Leave a comment:


  • vinay427
    replied
    Thanks for the quick reply! In fact, I had made a "yes" file using grep for a Python script I was trying to make. Anyway, I tried that, and after a while of working (at least more than 20 minutes) it gave me this:
    Code:
    Write failed: Broken pipe

    Leave a comment:

Latest Articles

Collapse

  • SEQadmin2
    The Factors Reshaping Genome Assembly
    by SEQadmin2



    When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
    11-24-2026, 07:04 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, Yesterday, 11:10 AM
0 responses
12 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 12-01-2026, 11:06 AM
0 responses
21 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-23-2026, 11:11 AM
0 responses
60 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-17-2026, 06:27 AM
0 responses
56 views
0 reactions
Last Post SEQadmin2  
Working...