grants

Overview

baseGrant

class metaknowledge.grants.baseGrant.FallbackGrant(original, grantdDict, sFile='', sLine=0)

A subclass of Grant, it has the same attributes and is returned from the fall back constructor for grants.

class metaknowledge.grants.baseGrant.Grant(original, grantdDict, idValue, bad, error, sFile='', sLine=0)
getInstitutions(tags=None, seperator=';', _getTag=False)

Returns a list of the names of institutions. This is done by looking (in order) for any of fields in tags and splitting the strings on seperator (in case of multiple institutions). If no strings are found an empty list will be returned.

Note for some Grants getInstitutions has been overwritten and will ignore the arguments and simply provide the investigators.

Parameters

tags : optional list[str]

A list of the tags to look for institutions in

seperator : optional str

The string that separators each institutions name within the column

Returns

list [str]

A list of all the found institution’s names
getInvestigators(tags=None, seperator=';', _getTag=False)

Returns a list of the names of investigators. This is done by looking (in order) for any of fields in tags and splitting the strings on seperator. If no strings are found an empty list will be returned.

Note for some Grants getInvestigators has been overwritten and will ignore the arguments and simply provide the investigators.

Parameters

tags : optional list[str]

A list of the tags to look for investigators in

seperator : optional str

The string that separators each investigators name within the column

Returns

list [str]

A list of all the found investigator’s names
update(other)

Adds all the tag-entry pairs from other to the Grant. If there is a conflict other takes precedence.

Parameters

other : Grant

Another Grant of the same type as self
metaknowledge.grants.baseGrant.csvAndLinesReader(enumeratedFile, *csvArgs, **csvKwargs)
metaknowledge.grants.baseGrant.isFallbackGrantFile(fileName, useFileName=True, encoding='latin-1', dialect='excel')
metaknowledge.grants.baseGrant.parserFallbackGrantFile(fileName, encoding='latin-1', dialect='excel')

cihrGrant

class metaknowledge.grants.cihrGrant.CIHRGrant(original, grantdDict, sFile, sLine)
metaknowledge.grants.cihrGrant.isCIHRfile(fileName, useFileName=True)
metaknowledge.grants.cihrGrant.parserCIHRfile(fileName)

medlineGrant

class metaknowledge.grants.medlineGrant.MedlineGrant(grantString)

nsercGrant

class metaknowledge.grants.nsercGrant.NSERCGrant(original, grantdDict, sFile, sLine)
getInstitutions(tags=None, seperator=';', _getTag=False)

Returns a list with the names of the institution. The optional arguments are ignored

Returns

list [str]

A list with 1 entry the name of the institution
getInvestigators(tags=None, seperator=';', _getTag=False)

Returns a list of the names of investigators. The optional arguments are ignored.

Returns

list [str]

A list of all the found investigator’s names
update(other)

Adds all the tag-entry pairs from other to the Grant. If there is a conflict other takes precedence.

Parameters

other : Grant

Another Grant of the same type as self
metaknowledge.grants.nsercGrant.isNSERCfile(fileName, useFileName=True)
metaknowledge.grants.nsercGrant.parserNSERCfile(fileName)

nsfGrant

class metaknowledge.grants.nsfGrant.NSFGrant(grantdDict, sFile)
getInstitutions(tags=None, seperator=';', _getTag=False)

Returns a list with the names of the institution. The optional arguments are ignored

Returns

list [str]

A list with 1 entry the name of the institution
getInvestigators(tags=None, seperator=';', _getTag=False)

Returns a list of the names of investigators. The optional arguments are ignored.

Returns

list [str]

A list of all the found investigator’s names
metaknowledge.grants.nsfGrant.isNSFfile(fileName, useFileName=True)
metaknowledge.grants.nsfGrant.parserNSFfile(fileName)

scopusGrant

class metaknowledge.grants.scopusGrant.ScopusGrant(grantString)