We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A utility to select data files from an ISA-Tab based on factor values.
Intended usage of mtbls.py functionality:
from isatools.io import mtbls study_id = 'MTBLS1' factor_names = mtbls.get_factor_names(study_id) # response: # {'Gender', 'Age'} if 'Gender' in factor_names: factor_values = mtbls.get_factor_values(study_id, 'Gender') # response: # {'Male', 'Female'} query = { "Gender": "Male" } samples_and_files = mtbls.get_data_files(study_id, factor_query=query) # response: # [ # { # 'sample': 'ADG10003u_007'}, # 'data_files': ['ADG10003u_007.zip'], # 'query_used': {'Gender': 'Male'} # }, ... # ] for sample_and_files in samples_and_files: sample_name = sample_and_files['sample'] data_files = sample_and_files['data_files'] for data_file in data_files: # do something with the file name, e.g. make it an ftp URL.
The slicer should produce:
The text was updated successfully, but these errors were encountered:
Implements MetaboLights slicer and test; updates to mtbls.md doc #1
07c776b
1f8e97f
Fix type check on factor values #1
7173fbe
Change tab and json getter method sig #1
5cc3c9e
Merged to upstream origin ISA-tools#156
Sorry, something went wrong.
djcomlab
No branches or pull requests
A utility to select data files from an ISA-Tab based on factor values.
Intended usage of mtbls.py functionality:
The slicer should produce:
The text was updated successfully, but these errors were encountered: