Comments (1)
import bfabric
B = bfabric.Bfabric()
query={'resource': {'status': 'available', 'size': 56530266, 'name': 'data/20201020/F290274.dat', 'relativepath': 'data/20201020/F290274.dat', 'filechecksum': '26e2295015ed85e60f3825510083eb62', 'storageid': 4}, 'containerid': '23023', 'name': '20201020_C23023_002_S269992_RH1408_Recombinant_protein_FTHCD.mgf PAG_AutoSearch_swissprot BF10 full storage; F290274.dat; \\\\fgcz-r-035.fgcz-net.unizh.ch\\Data2San\\p23023\\Proteomics\\QEXACTIVE_1\\analytic_20201020\\mgf__pd21_separate_IMP_charged_deconvolution\\', 'applicationid': 19, 'inputresource': [{'relativepath': 'p23023/Proteomics/QEXACTIVE_1/analytic_20201020/20201020_C23023_002_S269992_RH1408_Recombinant_protein.raw', 'storageid': 2}], 'description': 'COM=20201020_C23023_002_S269992_RH1408_Recombinant_protein_FTHCD.mgf PAG_AutoSearch_swissprot BF10 full storage; TOL=10; TOLU=ppm; ITOL=0.03; ITOLU=Da; FILE=\\\\fgcz-r-035.fgcz-net.unizh.ch\\Data2San\\p23023\\Proteomics\\QEXACTIVE_1\\analytic_20201020\\mgf__pd21_separate_IMP_charged_deconvolution\\20201020_C23023_002_S269992_RH1408_Recombinant_protein_FTHCD.mgf; USERNAME=daemon; CHARGE=2+ and 3+; IT_MODS=Oxidation (M); INSTRUMENT=Q-Exactive (Deconv); USERID=4; DECOY=1; release=SwissProt_autoup_20200812.fasta; feeder = http://fgcz-svn.uzh.ch/repos/fgcz/computer/fgcz-c-064/bfabric-feeder/fgcz_dataFeederMascot.py'}
rv = B.checkandinsert_object('workunit', query)
print(rv)
print(rv[0])
query={'resource': {'status': 'available', 'size': 69399582, 'name': 'data/20201018/F290245.dat', 'relativepath': 'data/20201018/F290245.dat', 'filechecksum': '233c47a66e5cc1a367770fc68162102f', 'storageid': 4}, 'containerid': '22976', 'name': '20201016_C22976_026_S269780_12_Recombinant_protein_FTHCD.mgf PAG_AutoSearch_swissprot BF10 full storage; F290245.dat; \\\\fgcz-r-035.fgcz-net.unizh.ch\\Data2San\\p22976\\Proteomics\\QEXACTIVE_1\\analytic_20201016\\mgf__pd21_separate_IMP_charged_deconvolution\\2020', 'applicationid': 19, 'inputresource': [{'relativepath': 'p22976/Proteomics/QEXACTIVE_1/analytic_20201016/20201016_C22976_026_S269780_12_Recombinant_protein.raw', 'storageid': 2}], 'description': 'COM=20201016_C22976_026_S269780_12_Recombinant_protein_FTHCD.mgf PAG_AutoSearch_swissprot BF10 full storage; TOL=10; TOLU=ppm; ITOL=0.03; ITOLU=Da; FILE=\\\\fgcz-r-035.fgcz-net.unizh.ch\\Data2San\\p22976\\Proteomics\\QEXACTIVE_1\\analytic_20201016\\mgf__pd21_separate_IMP_charged_deconvolution\\20201016_C22976_026_S269780_12_Recombinant_protein_FTHCD.mgf; USERNAME=daemon; CHARGE=2+ and 3+; IT_MODS=Oxidation (M); INSTRUMENT=Q-Exactive (Deconv); USERID=4; DECOY=1; release=SwissProt_autoup_20200812.fasta; feeder = http://fgcz-svn.uzh.ch/repos/fgcz/computer/fgcz-c-064/bfabric-feeder/fgcz_dataFeederMascot.py'}
rv = B.checkandinsert_object('workunit', query)
print(rv)
print(rv[0])
query={'resource': {'status': 'available', 'size': 193698609, 'name': 'data/20191202/F282658.dat', 'relativepath': 'data/20191202/F282658.dat', 'filechecksum': 'bfc39b5df6836f8f32896ceb0bda03ab', 'storageid': 4}, 'containerid': '3000', 'name': 'Lumos2_Hela02_DDA_GT90_RT110min_HCD_IT_08IW_adGradient_adIT; F282658.dat; Hela02_DDA_GT90_RT110min_HCD_IT_08IW_adGradient_adIT.mgf', 'applicationid': 19, 'inputresource': [{'relativepath': 'p3000/Proteomics/LUMOS_2/cfortes_20191128_FirstRuns/Hela02_DDA_GT90_RT110min_HCD_IT_08IW_adGradient_adIT.raw', 'storageid': 2}], 'description': 'COM=Lumos2_Hela02_DDA_GT90_RT110min_HCD_IT_08IW_adGradient_adIT; TOL=10; TOLU=ppm; ITOL=0.6; ITOLU=Da; MODS=Carbamidomethyl (C); FILE=Hela02_DDA_GT90_RT110min_HCD_IT_08IW_adGradient_adIT.mgf; USERNAME=cfortes; CHARGE=2+; IT_MODS=Oxidation (M); INSTRUMENT=LTQ-ORBI-Default; USERID=1274; QUANTITATION=None; release=fgcz_9606_reviewed_cnl_20190709.fasta; feeder = http://fgcz-svn.uzh.ch/repos/fgcz/computer/fgcz-c-064/bfabric-feeder/fgcz_dataFeederMascot.py'}
rv = B.checkandinsert_object('workunit', query)
print(rv)
print(rv[0])
OUTPUT
[<suds.sudsobject.xmlWorkunit object at 0x7f8b6956f278>]
(xmlWorkunit){
errorreport = "Resource(s) with the specified attribute combination not found: storage id: 2 relative path: p23023/Proteomics/QEXACTIVE_1/analytic_20201020/20201020_C23023_002_S269992_RH1408_Recombinant_protein.raw"
}
[<suds.sudsobject.xmlWorkunit object at 0x7f8b69583128>]
(xmlWorkunit){
errorreport = "Resource(s) with the specified attribute combination not found: storage id: 2 relative path: p22976/Proteomics/QEXACTIVE_1/analytic_20201016/20201016_C22976_026_S269780_12_Recombinant_protein.raw"
}
[<suds.sudsobject.xmlWorkunit object at 0x7f8b6958c358>]
(xmlWorkunit){
errorreport = "There already exists a resource with the following attributes: relativepath=data/20191202/F282658.dat storageid=4 containerid=3000 applicationid=19"
}
from bfabricpy.
Related Issues (20)
- bfabric_save_fasta.py stopped working with bfabric 10
- add fastasequence to yaml configuration HOT 3
- workunit is always set to status available HOT 1
- refactor `urllib.url2pathname`
- barcode endpoint HOT 9
- Support for python 3.9 HOT 2
- bfabric_save_csv2dataset.py HOT 5
- Introduce generic paging
- make a config file reader in YAML HOT 2
- change email || make email config
- TMT sample graph traversal HOT 4
- Time-out error when using bfabric.save_object for large number of objects. HOT 2
- 'app.json_encoder' is deprecated HOT 1
- Getting number of pages with BFabricPy HOT 1
- read_object query print statement HOT 2
- add createby in wrappercreator config HOT 3
- refactor using f-string HOT 2
- adding email config in rc file
- can we use the bfabric url from the yml config? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bfabricpy.