Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • arthur.yxt
    Member
    • Oct 2009
    • 10

    python script modification of LSC0.2.4 ?

    It's really really great news that LSC now takes BWA into usage in the current version of 0.2.4. It took me one whole day only to find out that the master script "runLSC.py" might need some changes in order to run smoothly.

    There seem to be some late-night editings on the last part quoted below:
    ########
    old_output_foldername = output_foldername.strip("/") + "_old/"

    mv_cmd = "mv " + output_foldername + " " + old_output_foldername
    os.system(mv_cmd)

    getLR_cmd = bin_path + "getLR.py " + cfg_filename
    os.system(getLR_cmd)

    os.system("cp " + old_output_foldername + "corrected_LR_SR.map.fa " + output_foldername
    os.system("cp " + old_output_foldername + "uncorrected_LR_SR.map.fa " + output_foldername
    os.system("cp " + old_output_foldername + "full_LR_SR.map.fa " + output_foldername + "oldfull_LR_SR.map.fa"

    correct_fullfa_cmd = bin_path + "correct_fullfa.py " + output_foldername + "corrected_LR_SR.map.fa " + output_foldername + "uncorrected_LR_SR.map.fa " + output_foldername + "oldfull_LR_SR.map.fa " + output_foldername + "newLR.fa " + output_foldername + "full_LR_SR.map.fa_ > " + output_foldername + "correct_fullfa.log"
    os.system(correct_fullfa_cmd)

    cat_cmd = "cat " + output_foldername + "full_LR_SR.map.fa_ " + output_foldername + "full_LR_SR.map.fa_2 > " + output_foldername + "full_LR_SR.map.fa"
    os.system(cat_cmd)
    ########


    This might work?
    ########
    old_output_foldername = output_foldername.strip("/") + "_old/"

    mv_cmd = "mv " + output_foldername + " " + old_output_foldername
    os.system(mv_cmd)


    getLR_cmd = "python " + bin_path + "getLR.py " + cfg_filename
    # getLR.py will mkdir named "output_foldername"
    os.system(getLR_cmd)

    os.system("cp " + old_output_foldername + "corrected_LR_SR.map.fa " + output_foldername)
    os.system("cp " + old_output_foldername + "uncorrected_LR_SR.map.fa " + output_foldername)
    os.system("cp " + old_output_foldername + "full_LR_SR.map.fa " + output_foldername + "oldfull_LR_SR.map.fa")


    correct_fullfa_cmd = "python " + bin_path + "correct_fullfa.py " + output_foldername + "corrected_LR_SR.map.fa " + output_foldername + "uncorrected_LR_SR.map.fa " + output_foldername + "oldfull_LR_SR.map.fa " + output_foldername + "newLR.fa " + output_foldername + "full_LR_SR.map.fa_ > " + output_foldername + "correct_fullfa.log"
    os.system(correct_fullfa_cmd)

    cat_cmd = "cat " + output_foldername + "full_LR_SR.map.fa_ " + output_foldername + "full_LR_SR.map.fa_2 > " + output_foldername + "full_LR_SR.map.fa"
    os.system(cat_cmd)
    ########


    I know the adding of the "python" here seems to be redundant, but I got this error otherwise:
    ###
    sh: /data/chen/arthur/Joerg/pacbio/LSC/bin/getLR.py: not found
    ###

    Again, great work! Cheers!
    Last edited by arthur.yxt; 06-11-2013, 11:41 PM.

Latest Articles

Collapse

  • GATTACAT
    Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
    by GATTACAT
    Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
    07-01-2026, 11:43 AM
  • SEQadmin2
    Nine Things a Sample Prep Scientist Thinks About Before Sequencing
    by SEQadmin2


    I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

    Here are nine questions we think about, in roughly the order they matter, before...
    06-18-2026, 07:11 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 07-02-2026, 11:08 AM
0 responses
7 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-30-2026, 05:37 AM
0 responses
12 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-26-2026, 11:10 AM
0 responses
20 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-17-2026, 06:09 AM
0 responses
54 views
0 reactions
Last Post SEQadmin2  
Working...