You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method *check_tag_definition(tag, tag_type='INFO', sep='|')* allows to check if a tag is in the header and if is standalone or field of another leading tag. Returns the leading tag and the field corresponding index, if any, to access the tag. *sep* is the fields separator used in the tag definition.
90
90
@@ -93,7 +93,7 @@ The method *check_tag_definition(tag, tag_type='INFO', sep='|')* allows to check
93
93
# ##INFO=<ID=CSQ,Number=.,Type=String,Description="Consequence annotations from Ensembl VEP. Format: Gene|Feature|Consequence|IMPACT|...">
@@ -207,10 +207,12 @@ The method *remove_tag_info(tag, sep=';')* allows to remove a tag or a flag from
207
207
The method *add_tag_info(tag_value, sep=';')* allows to add a tag and its value or a flag at the end of INFO. *sep* is the tags separator used in INFO.
208
208
209
209
# Add tag and value to INFO
210
+
210
211
tag_value = 'tag=value'
211
212
vnt_obj.add_tag_info(tag_value)
212
213
213
214
# Add flag to INFO
215
+
214
216
tag_value = 'flag'
215
217
vnt_obj.add_tag_info(tag_value)
216
218
@@ -220,9 +222,11 @@ The method *get_tag_value(tag, is_flag=False, sep=';')* returns the value from t
220
222
If the tag is a flag set *is_flag=True*, the function will now return True or False instead.
0 commit comments