Skip to content

Commit ecfcd30

Browse files
committed
add functions to access context tags group
1 parent 87c6803 commit ecfcd30

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

include/fast5.hpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ typedef Attr_Map Tracking_Id_Params;
7878

7979
typedef Attr_Map Sequences_Params;
8080

81+
typedef Attr_Map Context_Tags_Params;
82+
8183
typedef float Raw_Sample;
8284
typedef int16_t Raw_Int_Sample;
8385

@@ -712,6 +714,27 @@ class File
712714
{
713715
add_attr_map(tracking_id_path(), tracking_id_params);
714716
}
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+
}
715738

716739
//
717740
// Access /Sequences
@@ -2377,6 +2400,7 @@ class File
23772400
static std::string file_version_path() { return "/file_version"; }
23782401
static std::string channel_id_path() { return "/UniqueGlobalKey/channel_id"; }
23792402
static std::string tracking_id_path() { return "/UniqueGlobalKey/tracking_id"; }
2403+
static std::string context_tags_path() { return "/UniqueGlobalKey/context_tags"; }
23802404
static std::string sequences_path() { return "/Sequences/Meta"; }
23812405
static std::string raw_samples_root_path() { return "/Raw/Reads"; }
23822406
static std::string raw_samples_params_path(std::string const & rn)

0 commit comments

Comments
 (0)