X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4ca9ad94a6bb006d1f3c7ba207837f1736d1247..da8714584a1649fb128e0f13718c2507c518a210:/doc/user/topics/tutorial-trait-search.html.textile.liquid diff --git a/doc/user/topics/tutorial-trait-search.html.textile.liquid b/doc/user/topics/tutorial-trait-search.html.textile.liquid index d1a0e2434c..d396802f72 100644 --- a/doc/user/topics/tutorial-trait-search.html.textile.liquid +++ b/doc/user/topics/tutorial-trait-search.html.textile.liquid @@ -3,6 +3,15 @@ layout: default navsection: userguide title: "Querying the Metadata Database" ... +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} + +{% include 'notebox_begin_warning' %} +The humans, specimens and traits tables are deprecated and will be removed in a future release. The recommended way to store and search on user-defined metadata is using the "properties" field of Arvados resources. +{% include 'notebox_end' %} This tutorial introduces the Arvados Metadata Database. The Metadata Database stores information about files in Keep. This example will use the Python SDK to find public WGS (Whole Genome Sequencing) data for people who have reported a certain medical condition. @@ -10,17 +19,17 @@ This tutorial introduces the Arvados Metadata Database. The Metadata Database s In the tutorial examples, three angle brackets (>>>) will be used to denote code to enter at the interactive Python prompt. -Start by running Python. +Start by running Python.
~$ python
-Python 2.7.3 (default, Jan  2 2013, 13:56:14) 
+Python 2.7.3 (default, Jan  2 2013, 13:56:14)
 [GCC 4.7.2] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>>
 
- + If everything is set up correctly, you will be able to import the arvados SDK. notextile.
>>> import arvados
@@ -243,7 +252,7 @@ After the jobs have completed, check output file sizes. job_uuid = job[collection_uuid]['uuid'] job_output = arvados.api('v1').jobs().get(uuid=job_uuid).execute()['output'] output_files = arvados.api('v1').collections().get(uuid=job_output).execute()['files'] - # Test the output size. If greater than zero, that means 'grep' found the variant + # Test the output size. If greater than zero, that means 'grep' found the variant if output_files[0][2] > 0: print("%s has variant rs1126809" % (pgpid[collection_uuid])) else: