Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
try:
# is the technicians name a key in the dictionary created from the config file
# if so find the groups the techician has been assigned in the config
config_groups = (configDict[first,last]).split(",")
step_approved = [y.strip() for y in (args["groups"].split(","))]
if bool(set(config_groups) & set(step_approved)) is False:
#fail script, stop user from moving forward and have the last print statement appear in message
print "Nice try %s %s, but you have not been approved to run this step % (first, last )
exit (-1)
except:
print "This technician's name has not been included in the config file "
exit (-1python /opt/gls/clarity/customextensions/Group_Permissions.py -u {username} -p {password} -s {stepURI:v2} -g "GroupD, GroupE" def test1():
cm = counterManager()
cm.setPath( "./test" )
if cm.setup() is True:
print( "INFO: setup Counter Manager" )
print( "INFO: attempting to call getNextValue for: testA ..." )
tmp = cm.getNextValue( "testA" )
print( "INFO: getNextValue returned:" + str(tmp) )
else:
print( "ERROR: Failed to setup Counter Manager" )bash -l -c "/usr/bin/python /opt/gls/clarity/customextensions/sample_history.py -a DAN2A4PA1 -s {stepURI:v2} -u {username} -p {password}" /usr/bin/python /opt/gls/clarity/customextensions/renameSamples.py -l 2-1234 -u admin -p securepasswordstep 1: get the inputs to this process
for each input:
step 2: get the URI of the submitted sample associated with the inputs
step 3: get the sample
step 4: update the sample
step 5: save the sample/usr/bin/python /opt/gls/clarity/customextensions/flowcellContents.py -l 27-1234 -u admin -p securepassword /usr/bin/python /opt/gls/clarity/customextensions/genericParser.py -u {username} -p {password} -s {stepURI:v2} -r {compoundOutputFileLuid0}MAPPING MODEartifactUDFMapdelimMapTo_ArtifactNameMapTo_WellLocationMapTo_UDFValueartifactUDFMap = {
"Concentration" : "Concentration",
"Avg. Size" : "Average Size"
}def dl_pdf( artifactluid_ofpdf ): ### finds the file LUID from artifact LUID of the PDF
artif_URI = BASE_URI + "artifacts/" + artifactluid_ofpdf
artGET = requests.get(artif_URI, auth=(args[ "username" ],args[ "password" ]))
root = ET.fromstring(artXML)
for id in root.findall("{http://genologics.com/ri/file}file"):
fileLUID = id.get("limsid")
file_URI = BASE_URI + "files/" + fileLUID + "/download"
fileGET = requests.get(file_URI, auth=(args[ "username" ],args[ "password" ]))
with open("frag.pdf", 'wb') as fd:
for chunk in fileGET.iter_content():
fd.write(chunk)page = 10
for each in range(len(wells)):
well_loci = wells[each]
if well_loci in well_map.keys():
limsid = well_map[well_loci]
filename = limsid + "_" + well_loci
command = 'pdfimages ' + 'frag.pdf' +' -j -f ' + str(page) + ' -l ' + str(page) + ' ' + filename
os.system(command) bash -c "/usr/bin/python /opt/gls/clarity/customextensions/pdfimages.py -a {compoundOutputFileLuid0} -u{username} -p {password} -f '{outputFileLuids}'"/usr/bin/python /opt/gls/clarity/customextensions/setUDFonSample.py -l MCL-SA1-131211-24-6813 -u admin -p securepassword -f "Sample Conc., Units" -t ResultFile -v "Concentration, Conc.Units" /usr/bin/python /opt/gls/clarity/customextensions/parseMetadata.py -l 24-9953 -u admin -p securepassword -s http://192.168.9.123:8080/api/v2/steps/24-9953 -i 92-20553
#!/bin/bash
#PBS -N run_casava
#PBS -q himem
#PBS -l nodes=1:ppn=20
export RUN_DIR=/data/instrument_data/120210_SN1026_0092_BXXXXXXXXX
export OUTPUT_DIR=/data/processed_data/processed_data.1.8.2/120210_SN1026_0092_BXXXXXXXXX
export SAMPLE_SHEET=/data/SampleSheets/samplesheet.csv
cd $PBS_O_WORKDIR
source /etc/profile.d/modules.sh
module load casava-1.8.2
export TMPDIR=/scratch/
export NUM_PROCESSORS=$((PBS_NUM_NODES*PBS_NUM_PPN))
configureBclToFastq.pl --input-dir $RUN_DIR/Data/Intensities/BaseCalls --output-dir $OUTPUT_DIR
--sample-sheet $SAMPLE_SHEET --force --ignore-missing-bcl --ignore-missing-stats
--use-bases-mask y*,I6,y* --mismatches 1
cd $OUTPUT_DIR
make -j $NUM_PROCESSORSpython /opt/gls/clarity/customextensions/ClusterBCL.py -l {processLuid} -u {username} -p {password}
-c {udf:Number of Cores} -m {udf:Number of mismatches}
-b "{udf:Bases mask}" -a {compoundOutputFileLuid0}.txt -e {compoundOutputFileLuid1}.txt -r "{udf:Run Name}"




