Lists software licences for a given workflow.

class nf_core.licences.WorkflowLicences(pipeline)

A nf-core workflow licenses collection.

Tries to retrieve the license information from all dependencies of a given nf-core pipeline.

A condensed overview with license per dependency can be printed out.

Parameters:pipeline (str) – An existing nf-core pipeline name, like nf-core/hlatyping or short hlatyping.

Normalises varying licence names.

Parameters:licences (list) – A list of licences which are basically raw string objects from the licence content information.
Returns:Cleaned licences.
Return type:list

Fetch package licences from Anaconda and PyPi.


Prints the fetched license information.

Parameters:as_json (boolean) – Prints the information in JSON. Defaults to False.