This function is used to obtain a SIRIUS refresh token with your login details, which allows generateCompoundsSIRIUS to automatically log in to use e.g. CSI:FingerID.

getSIRIUSToken(user)

Arguments

user

A character string with the user name/email.

Value

A character string with the (secret) refresh token or NULL if the input was cancelled.

Details

SIRIUS version 5 requires the user to be logged in when using web services such as CSI:FingerID. To allow secure log in by external software tools such as patRoon, a referesh token is needed. This function uses your user name (email) and asks for a password (using getPass) to obtain such a token more easily.

More details for e.g. account creation can be found on https://boecker-lab.github.io/docs.sirius.github.io/account-and-license/.

References

Duhrkop K, Fleischauer M, Ludwig M, Aksenov AA, Melnik AV, Meusel M, Dorrestein PC, Rousu J, Bocker S (2019). “SIRIUS 4: a rapid tool for turning tandem mass spectra into metabolite structure information.” Nature Methods, 16(4), 299--302. doi:10.1038/s41592-019-0344-8 .