Skip to content

Commit

Permalink
IRfinder form debugged
Browse files Browse the repository at this point in the history
  • Loading branch information
AIqbal94 committed Mar 4, 2024
1 parent 687bf03 commit 9686f30
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions routes/apps/irfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,23 +306,25 @@ def _generate_submission_file(rows, email,group,folder,md5sums,project_title,org

nf={
"r2d2":{
"project_folder" : os.path.join(paths["r2d2"]["run_data"], project_folder) ,
"project_folder" : os.path.join(paths["r2d2"]["run_data"], project_folder, "/") ,
"samplestable":os.path.join(paths["r2d2"]["code"], project_folder, "scripts.JBoucas" ,"sample_sheet.xlsx"),
"fastqc_raw_data" : os.path.join(paths["r2d2"]["run_data"], project_folder, "raw_data") ,
"IRquant_raw_data" : os.path.join(paths["r2d2"]["run_data"], project_folder, "raw_data"),
"fastqc_raw_data" : os.path.join(paths["r2d2"]["run_data"], project_folder, "raw_data/") ,
"IRquant_raw_data" : os.path.join(paths["r2d2"]["run_data"], project_folder, "raw_data/"),
"scripts" : os.path.join(paths["r2d2"]["code"], project_folder, "scripts.JBoucas/"),
"kallisto_raw_data" : "" ,
"genomes" : "/beegfs/common/genomes/nextflow_builds" ,
"genomes" : "/beegfs/common/genomes/nextflow_builds/" ,
"read1_sufix" : ".READ_1.fastq.gz",
"fastqc_output" : "fastqc_output",
"mapping_output" : "",
"featurecounts" : ""

},
"raven":{
"project_folder" : os.path.join(paths["raven"]["run_data"], project_folder) ,
"project_folder" : os.path.join(paths["raven"]["run_data"], project_folder, "/") ,
"samplestable":os.path.join(paths["raven"]["code"], project_folder, "scripts.flaski" ,"sample_sheet.xlsx"),
"fastqc_raw_data" : os.path.join(paths["raven"]["run_data"], project_folder, "raw_data") ,
"IRquant_raw_data" : os.path.join(paths["raven"]["run_data"], project_folder, "raw_data"),
"fastqc_raw_data" : os.path.join(paths["raven"]["run_data"], project_folder, "raw_data/") ,
"IRquant_raw_data" : os.path.join(paths["raven"]["run_data"], project_folder, "raw_data/"),
"scripts" : os.path.join(paths["raven"]["code"], project_folder, "scripts.flaski/"),
"kallisto_raw_data" : "" ,
"genomes" : "/nexus/posix0/MAGE-flaski/service/genomes/IRfinder/" ,
"read1_sufix" : ".READ_1.fastq.gz",
Expand All @@ -331,10 +333,11 @@ def _generate_submission_file(rows, email,group,folder,md5sums,project_title,org
"featurecounts" : ""
},
"studio":{
"project_folder" : os.path.join(paths["studio"]["run_data"], project_folder) ,
"project_folder" : os.path.join(paths["studio"]["run_data"], project_folder, "/") ,
"samplestable":os.path.join(paths["studio"]["code"], project_folder, "scripts.flaski" ,"sample_sheet.xlsx"),
"fastqc_raw_data" : os.path.join(paths["studio"]["run_data"], project_folder, "raw_data") ,
"IRquant_raw_data" : os.path.join(paths["studio"]["run_data"], project_folder, "raw_data"),
"fastqc_raw_data" : os.path.join(paths["studio"]["run_data"], project_folder, "raw_data/") ,
"IRquant_raw_data" : os.path.join(paths["studio"]["run_data"], project_folder, "raw_data/"),
"scripts" : os.path.join(paths["studio"]["code"], project_folder, "scripts.flaski/"),
"kallisto_raw_data" : "" ,
"genomes" : "/nexus/posix0/MAGE-flaski/service/genomes/IRfinder/" ,
"read1_sufix" : ".READ_1.fastq.gz",
Expand Down Expand Up @@ -780,8 +783,6 @@ def update_output(n_clicks, rows, email, group, folder, md5sums, project_title,
samples=pd.read_json(json_config[filename]["samples"])
metadata=pd.read_json(json_config[filename]["IRfinder"])

print(metadata)

validation=validate_metadata(metadata)
if validation:
header="Attention"
Expand Down Expand Up @@ -815,8 +816,6 @@ def update_output(n_clicks, rows, email, group, folder, md5sums, project_title,
ftp_user=send_submission_ftp_email(user=current_user, submission_type="IRfinder", submission_tag=json_filename, submission_file=json_filename, attachment_path=json_filename, ftp_user=ftp)
metadata=pd.concat([metadata,ftp_user])

print(metadata)

EXCout=pd.ExcelWriter(filename)
samples.to_excel(EXCout,"samples",index=None)
metadata.to_excel(EXCout,"IRfinder",index=None)
Expand Down

0 comments on commit 9686f30

Please sign in to comment.