Skip to content
Snippets Groups Projects
Commit da9f1020 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Merge branch '134-RCB.RMB.error' into 'develop'

Resolve "Server changing... need to change .insert calls"

Closes #134

See merge request !92
parents c9c308a8 612a7dd2
Branches
Tags
2 merge requests!95Update rna-seq.nf,!92Resolve "Server changing... need to change .insert calls"
Pipeline #10519 passed with stages
in 5 minutes and 36 seconds
Showing
with 137 additions and 20 deletions
......@@ -9,6 +9,8 @@
* Use CI staging RIDs for CI unit tests: getBag, uploadInputBag, uploadExecutionRun, uploadQC, uploadProcessedFiles, uploadOutputBag (#133)
* Add `-u "F"` to CI unit test uploadOutputBag `upload_output_bag.py`
* Remove "fail" integration CI tests (#133 addendum)
* Add licence header to nf file, R and python scriptsand pytest scripts
* Stop using RCB and RMB (default) with deriva.core insert calls to match server update (#134)
# v2.0.0
**User Facing**
......
#!/usr/bin/env nextflow
//rna-seq.nf
//*
//* --------------------------------------------------------------------------
//* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
//* --------------------------------------------------------------------------
//*
// ######## #### ###### ########
// ## ## ## ## ## ##
......
#!/usr/bin/env R
#calculateTPM.R
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
gc()
library(optparse)
......
#!/usr/bin/env R
#convertGeneSymbols.R
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
gc()
library(optparse)
......
#!/usr/bin/env python3
#delete_entry.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import argparse
from deriva.core import ErmrestCatalog, get_credential, BaseCLI
import sys
......@@ -34,4 +42,4 @@ if __name__ == '__main__':
cli.remove_options(["--config-file"])
host = args.host
credentials = {"cookie": args.cookie}
main(host, 2, credentials)
\ No newline at end of file
main(host, 2, credentials)
#!/usr/bin/env python3
#extract_ref_data.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import argparse
import pandas as pd
......
......@@ -2,7 +2,7 @@
#generate_references.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/BICF/Astrocyte/cellranger_count/blob/develop/LICENSE)
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# * --------------------------------------------------------------------------
# * Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/master/LICENSE)
# * --------------------------------------------------------------------------
#
#generate_versions.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
'''Make YAML of software versions.'''
......
#!/usr/bin/env python3
#parse_meta.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import argparse
import pandas as pd
......
#!/usr/bin/env python3
#tin_hist.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import argparse
import pandas as pd
......
#!/usr/bin/env python3
#upload_execution_run.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import argparse
from deriva.core import ErmrestCatalog, get_credential, BaseCLI
import sys
......@@ -33,7 +41,7 @@ def main(hostname, catalog_number, credential):
"Execution_Status": args.status,
"Execution_Status_Detail": args.statusDetail.replace('\\n','\n')
}
entities = run_table.insert([run_data])
entities = run_table.insert([run_data], add_system_defaults=False, defaults={"RID", "RCT", "RMT"})
rid = entities[0]["RID"]
else:
run_data = {
......@@ -58,4 +66,4 @@ if __name__ == '__main__':
cli.remove_options(["--config-file"])
host = args.host
credentials = {"cookie": args.cookie}
main(host, 2, credentials)
\ No newline at end of file
main(host, 2, credentials)
#!/usr/bin/env python3
#upload_input_bag.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import argparse
from deriva.core import ErmrestCatalog, get_credential, BaseCLI
import sys
......@@ -31,7 +39,7 @@ def main(hostname, catalog_number, credential):
"Bag_Type": "Replicate_Input_Seq"
}
entities = inputBag_table.insert([inputBag_data])
entities = inputBag_table.insert([inputBag_data], add_system_defaults=False, defaults={"RID", "RCT", "RMT"})
rid = entities[0]["RID"]
print(rid)
......@@ -43,4 +51,4 @@ if __name__ == '__main__':
cli.remove_options(["--config-file"])
host = args.host
credential = {"cookie": args.cookie}
main(host, 2, credential)
\ No newline at end of file
main(host, 2, credential)
#!/usr/bin/env python3
#upload_output_bag.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import argparse
from deriva.core import ErmrestCatalog, get_credential, BaseCLI
import sys
......@@ -34,7 +42,7 @@ def main(hostname, catalog_number, credential):
"Notes": args.notes,
"Bag_Type": "mRNA_Replicate_Analysis"
}
entities = outputBag_table.insert([outputBag_data])
entities = outputBag_table.insert([outputBag_data], add_system_defaults=False, defaults={"RID", "RCT", "RMT"})
rid = entities[0]["RID"]
else:
......@@ -42,7 +50,7 @@ def main(hostname, catalog_number, credential):
"RID": args.update,
"Execution_Run": args.executionRunRID
}
entities = outputBag_table.insert([outputBag_data])
entities = outputBag_table.insert([outputBag_data], add_system_defaults=False, defaults={"RID", "RCT", "RMT"})
rid = entities[0]["RID"]
print(rid)
......@@ -54,4 +62,4 @@ if __name__ == '__main__':
cli.remove_options(["--config-file"])
host = args.host
credential = {"cookie": args.cookie}
main(host, 2, credential)
\ No newline at end of file
main(host, 2, credential)
#!/usr/bin/env python3
#upload_qc.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import argparse
from deriva.core import ErmrestCatalog, get_credential, BaseCLI
import sys
......@@ -37,14 +45,14 @@ def main(hostname, catalog_number, credential):
"Median_TIN": args.tin,
"Notes": args.notes
}
entities = run_table.insert([run_data])
entities = run_table.insert([run_data], add_system_defaults=False, defaults={"RID", "RCT", "RMT"})
rid = entities[0]["RID"]
elif args.update == "E":
run_data = {
"Execution_Run": args.executionRunRID,
"Replicate": args.repRID
}
entities = run_table.insert([run_data])
entities = run_table.insert([run_data], add_system_defaults=False, defaults={"RID", "RCT", "RMT"})
rid = entities[0]["RID"]
else:
run_data = {
......@@ -72,4 +80,4 @@ if __name__ == '__main__':
cli.remove_options(["--config-file"])
host = args.host
credentials = {"cookie": args.cookie}
main(host, 2, credentials)
\ No newline at end of file
main(host, 2, credentials)
#!/usr/bin/env python3
#utils.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import shlex
import logging
......
#!/usr/bin/env python3
#test_alignReads.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import pytest
import pandas as pd
......
#!/usr/bin/env python3
#test_completion.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import pytest
import pandas as pd
......@@ -12,4 +18,4 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
@pytest.mark.completionMultiqc
def test_multiqcExist(filename):
assert os.path.exists(os.path.join(
test_output_path, filename))
\ No newline at end of file
test_output_path, filename))
#!/usr/bin/env python3
#test_consistency.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import pytest
import pandas as pd
......
#!/usr/bin/env python3
#test_dataQC.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import pytest
import pandas as pd
......
#!/usr/bin/env python3
#test_dedupReads.py
#*
#* --------------------------------------------------------------------------
#* Licensed under MIT (https://git.biohpc.swmed.edu/gudmap_rbk/rna-seq/-/blob/14a1c222e53f59391d96a2a2e1fd4995474c0d15/LICENSE)
#* --------------------------------------------------------------------------
#*
import pytest
import pandas as pd
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment