| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Log on to EC2 instance and type the following into the terminal:
$ source activate sdb
$ python
>>> from sampledb.sampledatabase import SampleDatabase
>>> sdb = SampleDatabase()Now you can search and publish to the database using sdb.search() and sdb.publish()
Use sdb.publish() as follows:
Use sdb.search() as follows:
You can also download searches to new spreadsheets:
>>> samples = sdb.search(sample_name='Ni')
>>> samples.download('new_spreadsheet.xlsx')Before downloading data, you can filter your data further. Each sample in your search has an associated index. You can view all the samples in your search by printing the object. This will show you the contents of the samples and their associated indices.
>>> samples = sdb.search()
>>> print(samples)
>>> samples = samples.filter([1, 3, 5])
>>> samples.download('filtered_spreadsheet.xlsx')| Back | FazBrowse Home | New Git URL |