Skip to contents

This method sets the germline subject.

Value

Set the germline subject.

Details

The subject must be one among those reported by MutationEngine$get_germline_subjects().

See also

MutationEngine$get_germline_subjects() to get the available germline subjects; MutationEngine$get_active_germline() to get the active germline subject.

Examples

# build a mutation engine
m_engine <- MutationEngine(setup_code = "demo")
#> 
 [█---------------------------------------] 0% [00m:00s] Loading context index                                    

 [████████████████████████████████████████] 100% [00m:00s] Context index loaded                                   

#> 
 [█---------------------------------------] 0% [00m:00s] Loading RS index                                         

 [████████████████------------------------] 39% [00m:01s] Loading RS index                                        

 [███████████████████████████████---------] 77% [00m:02s] Loading RS index                                        

 [████████████████████████████████████████] 100% [00m:02s] RS index loaded                                        

#> 
 [█---------------------------------------] 0% [00m:00s] Loading germline                                         

 [████████████████████████████████████████] 100% [00m:00s] Germline loaded                                        


# set the active germline subject dataframe
m_engine$set_germline_subject("NA18941")
#> 
 [█---------------------------------------] 0% [00m:00s] Loading germline                                         

 [████████████████████████████████████████] 100% [00m:00s] Germline loaded