comparison delete_organism.py @ 7:f9a6e151b3b4 draft

planemo upload for repository https://github.com/TAMU-CPT/galaxy-webapollo commit 52b9e5bf6a6efb09a5cb845ee48703651c644174
author eric-rasche
date Tue, 27 Jun 2017 04:05:17 -0400
parents 7610987e0c48
children
comparison
equal deleted inserted replaced
6:8f76685cdfc8 7:f9a6e151b3b4
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 from __future__ import print_function
2 import argparse 3 import argparse
3 from webapollo import WebApolloInstance 4 from webapollo import WebApolloInstance
4 from webapollo import WAAuth, OrgOrGuess, GuessOrg, AssertUser 5 from webapollo import WAAuth, OrgOrGuess, GuessOrg, AssertUser
5 import logging 6 import logging
6 logging.basicConfig(level=logging.INFO) 7 logging.basicConfig(level=logging.INFO)
34 # For each feature in the features 35 # For each feature in the features
35 for feature in features['features']: 36 for feature in features['features']:
36 # We see that deleteFeatures wants a uniqueName, and so we pass 37 # We see that deleteFeatures wants a uniqueName, and so we pass
37 # is the uniquename field in the feature. 38 # is the uniquename field in the feature.
38 print(wa.annotations.deleteFeatures([feature['uniquename']])) 39 print(wa.annotations.deleteFeatures([feature['uniquename']]))
39