Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

  • 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, Today, 08:47 AM
0 responses
11 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
59 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