@@ -78,6 +78,8 @@ typedef Attr_Map Tracking_Id_Params;
78
78
79
79
typedef Attr_Map Sequences_Params;
80
80
81
+ typedef Attr_Map Context_Tags_Params;
82
+
81
83
typedef float Raw_Sample;
82
84
typedef int16_t Raw_Int_Sample;
83
85
@@ -712,6 +714,27 @@ class File
712
714
{
713
715
add_attr_map (tracking_id_path (), tracking_id_params);
714
716
}
717
+
718
+ //
719
+ // Access /UniqueGlobalKey/context_tags
720
+ //
721
+ bool
722
+ have_context_tags_params () const
723
+ {
724
+ return Base::group_exists (context_tags_path ());
725
+ }
726
+
727
+ Context_Tags_Params
728
+ get_context_tags_params () const
729
+ {
730
+ return get_attr_map (context_tags_path ());
731
+ }
732
+
733
+ void
734
+ add_context_tags_params (Context_Tags_Params const & context_tags_params) const
735
+ {
736
+ add_attr_map (context_tags_path (), context_tags_params);
737
+ }
715
738
716
739
//
717
740
// Access /Sequences
@@ -2377,6 +2400,7 @@ class File
2377
2400
static std::string file_version_path () { return " /file_version" ; }
2378
2401
static std::string channel_id_path () { return " /UniqueGlobalKey/channel_id" ; }
2379
2402
static std::string tracking_id_path () { return " /UniqueGlobalKey/tracking_id" ; }
2403
+ static std::string context_tags_path () { return " /UniqueGlobalKey/context_tags" ; }
2380
2404
static std::string sequences_path () { return " /Sequences/Meta" ; }
2381
2405
static std::string raw_samples_root_path () { return " /Raw/Reads" ; }
2382
2406
static std::string raw_samples_params_path (std::string const & rn)
0 commit comments