Skip to content

Commit

Permalink
Merge pull request #310 from ces/empty_dag
Browse files Browse the repository at this point in the history
Change to  populate_wtsi_irods_groups.pl for empty data access groups
  • Loading branch information
mgcam authored Aug 9, 2024
2 parents 0883fce + 736cdbd commit a9a4727
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Unreleased

- Change populate_wtsi_irods_groups.pl to only populate iRODS
study access groups with all seq iRODS users for SS studies
with empty data access where the study is not managed e.g.
submitted to EGA not ENA

Release 3.23.0 (2024-07-25)

Expand Down
14 changes: 8 additions & 6 deletions bin/populate_wtsi_irods_groups.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

our $VERSION = '';

Readonly::Scalar my $MANAGED_TYPE => q{managed};

my $what_on_earth =<<'WOE';
Script to update WTSI iRODS systems with groups corresponding to
Expand All @@ -38,11 +40,11 @@
and iRODS public group is used as the membership of the corresponding
iRODS group.
If no data_access_group is set on the study, then if the study is
associated with sequencing the members of the iRODS group will be set
to the public group, else if the study is not associated with
sequencing tracked in the ML warehouse, the iRODS group will be left
empty (except for the iRODS groupadmin user).
If no data_access_group is set on the Sequencescape study, then if the
study doesn't have a data release type of managed the members of the
iRODS group will be set to the public group, else if the study has a
data release type of managed the iRODS group will be left empty (except
for the iRODS groupadmin user).
Studies which are marked as have samples contaminated with human which
should be removed will have an ss_<study_id>_human iRODS group created
Expand Down Expand Up @@ -163,7 +165,7 @@ sub _uid_to_irods_uid {
@members = map { _uid_to_irods_uid($_) }
map { @{ $group2uids->{$_} || [$_] } } @dags;
}
elsif ($is_seq) {
elsif ($study->data_release_strategy ne $MANAGED_TYPE) {
@members = @public;
}
else {
Expand Down

0 comments on commit a9a4727

Please sign in to comment.