applicationName: String
mainWindow: MainWindow [read-only]
name: String [read-only]
organizationName: String
version: Object [read-only]
version.build: Number [read-only]
version.full: String [read-only]
version.major: Number [read-only]
version.minor: Number [read-only]
version.number: Number [read-only]
Introduced in v.8.1.0-11172version.release: String [read-only]
Valid values: {"Chemist", "Console", "Full", "Lite"}
version.revision: Number [read-only]
blockSignals ( QObject aObj, Bool aBlock )
checkDependencies ( Array aPlgArr )
-
exit ( Number aStatus )
getPluginInfo ( String|RegExp aPluginID ): Object
-
loadUi ( String aUiString, String aWorkingDir = Dir.application() )
-
loadUiFile ( String aUiFile, String aWorkingDir = Dir.application() )
-
lockDocument ( Document aDocument )
markForDeletion ( QObject aObj )
openUrl ( String aUrl )
quit ( )
setExitStatus ( Number aStatus )
unlockDocument ( )
negativeThreshold: Number
positiveThreshold: Number
settings: ASVSettings [read-only]
getResults ( PageItem aSpecItem ): Array
getResults ( Molecule aMolecule ): Array
-
getResults ( ): Array
getResults ( PageItem aSpecItem, Molecule aMolecule ): Array
-
modifyPriorConfidence ( aPriorConfidence, [Number aId] )
-
-
moleculeIdFromResult ( VerificationResult aResult ): String
-
moleculeIdFromResult ( VerificationResult aResult ): String
-
moleculeIdFromResult ( VerificationResult aResult ): String
-
moleculeIdFromResult ( VerificationResult aResult ): String
-
ASVPlugin.scoreToColor ( aScore, [ aPositiveThreshold], [ aNegativeThreshold] )
-
-
spectraItemsFromResult ( VerificationResult aResult ): Array
-
verify ( Array aNMRGroup, Molecule aMolecule, [MassItem aMSItem], [Number aFlags], [Number aPriorConfidence] ): VerificationResult
-
-
-
-
mass: MassVerifySettings [read-only]
nmr: NMRVerifySettings [read-only]
See also: VerificationResult.messages
advice: String [read-only]
context: String [read-only]
description: String [read-only]
hidden: Boolean [read-only]
message: String [read-only]
params: Object [read-only]
type: Number [read-only]
alias: String
assignmentQuality: Number [read-only]
assignmentStability: Number [read-only]
Valid values: {Atom.AssignmentStability.Normal, Atom.AssignmentStability.Stable, Atom.AssignmentStability.Unknown}
charge: Number
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
elementSymbol: String
isotope: Number
nH: Number
nHAll: Number
number: String
protonNotation: Number
Valid values: {Atom.AB, Atom.ALPHABETA, Atom.AXEQ, Atom.CISTRANS, Atom.QUOTES}
stereoNotation: String [read-only]
text: String
valence: Number
protonLabel ( Number aIndex ): String
-
Valid values: {1, 2, 3}
toString ( ): String
atom: Object
shift: Object|Number|Array
assignments = [
{atom: {index: 3}, shift: [13, 14]},
{atom: {index: 3, h:'a'}, shift: {min: 7.21, max: 7.25}},
{atom: {index: 4, h: 'a'}, shift: 7.95}
];
atom: Object
js: Array
shift: Object|Number
var predObject = {
atom: {index:6, h:"a"},
shift:{value:1.0000001192092896, error:0.35},
js:[
{atom:{index:10, h:"a"}, j:{value:1.5, error:-1}},
{atom:{index:11, h:"a"}, j:{value:0.5, error:0.5}},
{atom:{index:15, h:"a"}, j:{value:0.5, error:0.5}}
]
};
Attachment ( )
binaryDataAsFile ( String aPath ): Number
getMetaData ( ): Object
getMetaDataValue ( String aName, Variant aDefaultValue ): Variant
removeMetaDataValue ( String aName )
setBinaryDataFromFile ( String aPath ): Number
setMetaData ( Object aObject )
setMetaDataValue ( String aName, Variant aValue )
setTextData ( String aText ): Number
setTextDataFromFile ( String aPath, String aCodec ): Number
-
textData ( ): String
endianness: Number
Valid values: {BinaryStream.eBig, BinaryStream.eLittle}
pos: Number
BinaryStream ( File aIODevice )
BinaryStream ( BinaryStream aStream )
BinaryStream ( String aHexStr )
atEnd ( ): Boolean
readBool ( )
readBytes ( Number aSize ): ByteArray
readCString ( )
readInt16 ( )
readInt32 ( )
readInt64 ( )
readInt8 ( )
readReal32 ( )
readReal64 ( )
readString ( )
skip ( Number aSize )
toString ( ): String
writeBool ( Boolean aValue )
writeBytes ( String | ByteArray aValue, [Number aSize] )
writeCString ( String aValue )
writeInt16 ( Number aValue )
writeInt32 ( Number aValue )
writeInt64 ( Number aValue )
writeInt8 ( Number aValue )
writeReal32 ( Number aValue )
writeReal64 ( Number aValue )
writeString ( String aValue )
BlindRegion ( Number aFrom, Number aTo )
BlindRegion ( Number aFrom1, Number aTo1, Number aFrom2, Number aTo2 )
BondStereo: Number = {bsCisOrTrans, bsDown, bsEither, bsNone, bsUp}
BondType: Number = {btAny, btAromatic, btDouble, btDoubleOrAromatic, btSingle, btSingleOrAromatic, btSingleOrDouble, btTriple}
ByteArray ( String aString, String aCodec = 'Latin1' )
ByteArray ( ByteArray aBytes )
at ( Number aIndex ): Number
ByteArray.fromBase64 ( ByteArray aBase64Array ): ByteArray
toBase64 ( ): ByteArray
toString ( String aCodec = 'Latin1' ): String
IANA character set name or alias
CheckBox ( )
parameters: Object [read-only]
pointsNumber: Number [read-only]
procParams: ChromatogramProcParams [read-only]
dataPoint ( Number aIndex ): Object
process ( ChromatogramProcParams aParams )
setDataPoint ( Number aIndex, Object aPoint )
activeChromatogramIndex: Number
count: Number [read-only]
properties: ChromPlotProperties
ChromatogramItem ( ChromatogramItem aItem )
appendChromatogram ( ChromatogramItem aOtherChromItem )
-
chromatogram ( [Number aIndex] ): Chromatogram
-
removeChromatogram ( Number aIndex ): Boolean
-
normalization: ChromNormalizationParams
timeShift: ChromTimeShiftParams
stacked: PlotStackedAxisProps
axes: ChromPlotAxesProps
background: PlotBackgroundProps
grid: PlotGridProps
line: Plot1DLineProps
peaks: PlotChromPeaksProps
title: PlotTitleProps
function test()
{
var chromItem = chrom.activeItem();
if( chromItem != undefined ) {
var oldAxes = chromItem.properties.axes;
//Set directly
chromItem.properties.axes.horizontal.label.text = "X axis";
chromItem.properties.axes.horizontal.visible = true;
//Set by creating a new object and setting only the values we want to change
var hnew = new Object();
hnew.visible = true;
hnew.label = new Object();
hnew.label.text = "X axis";
chromItem.properties.axes.horizontal = hnew;
//Set by copying
chromItem.properties.axes = oldAxes;
}
}
ChromPlugin ( ChromPlugin aChromPlugin )
activeItem ( ): ChromatogramItem
loadParametersCustomization ( String aFileName, [String aFileFormat] ): Boolean
count: Number
currentIndex: Number
currentText: String
items: Array
See also: DBPlugin.client, DBPlugin.createClient
database: String
mainWindow.doAction("dbDatabaseOpen");
print(DBPlugin.client.database);
See also: connected, databases, host, openDatabase
host: String [read-only]
name: String [read-only]
See also: host
port: int [read-only]
See also: connected
user: String [read-only]
See also: connected
connect ( String aServer, int aPort, String aUser, String aPassword, [String aDatabase] ): Boolean
-
-
-
-
-
var db = DBPlugin.createClient();
db.connect("localhost", 5504, "test", "secret", "mydb");
if (db.connected())
MessageBox.information("Connected as user 'test' to database 'mydb' on server 'localhost'.");
else
MessageBox.critical("Could not connect.");
db.disconnect();
connected ( ): Boolean
See also: connect, disconnect
createDatabase ( DBDefinition aDefinition ): Boolean
-
var db = DBPlugin.createClient();
var dbname = "test_1";
var dbschema = DBDefinition.defaultDefinition(dbname);
db.connect("localhost", 5504, "test", "secret");
if (!db.connected())
MessageBox.critical("Could not connect.");
else if (!db.createDatabase(dbschema))
print("Could not create database '" + dbname + "'.");
else
print("Database '" + dbname + "' created successfully.");
db.disconnect();
See also: databases, DBDefinition
databases ( ): Array
var db = DBPlugin.createClient();
db.connect("localhost", 5504, "test", "secret");
if (!db.connected())
MessageBox.critical("Could not connect.");
else
{
var dbnames = db.databases();
for( var i = 0; i < dbnames.length; i++ )
{
print(" Database " + (i+1) + ": "+ dbnames[i]);
}
}
db.disconnect();
See also: createDatabase
definition ( [String aDatabaseName] ): DBDefinition
-
See also: DBDefinition
disconnect ( )
openDatabase ( String aDatabaseName ): Boolean
-
var db = DBPlugin.createClient();
var dbname = "test_1";
db.connect("localhost", 5504, "test", "secret");
if (!db.connected())
MessageBox.critical("Could not connect.");
else if (!db.openDatabase(dbname))
print("Could not open database '" + dbname + "'.");
else
print("Now connected to database '" + dbname + "'.");
db.disconnect();
saveRecord ( int aRecordId, Array aItems ): int
-
-
var db = DBPlugin.createClient();
db.connect("localhost", 5504, "test", "secret", "testdb");
if (!db.connected())
MessageBox.critical("Could not connect to database testdb as user test.");
else {
// Save all PageItems in document to a new record
var items = new Array();
var dw = mainWindow.activeDocument;
for( var i = 0; i < dw.itemCount(); i++ )
items.push(dw.item(i));
print("Saving...");
var cid = db.saveRecord(0, items);
if (cid > 0)
MessageBox.information("Saved " + items.length + " items under record id " + cid + ".")
else
MessageBox.critical("Error while saving.")
}
db.disconnect();
sendRequest ( String aRequest ): String
-
toString ( ): String
See also: DBClient.createDatabase
clientVersion: String [read-only]
created: String [read-only]
creator: String [read-only]
name: String
records: Int [read-only]
serverVersion: String [read-only]
version: String
addField ( String aItemType, String aName, String aType, Number aSize = 0, String aContentDef, String aComment ): Boolean
-
-
-
Valid values: {"BINARY", "CHEMSTRC", "LINK", "MOLFORM", "MULTIPLETLIST1A", "NUMERIC", "PEAKLIST1A", "PEAKLIST2A", "SVGPICT", "TEXT"}
-
-
-
// A database only for molecules:
var dbdef = DBDefinition.emptyDefinition("MyDatabase");
dbdef.addItemType("Molecule", "COMP", "");
dbdef.addField("Molecule", "Structure", "CHEMSTRC", 0, "=Molecule(item).getMolfile()", "The molecule structure.");
dbdef.addField("Molecule", "Formula", "MOLFORM", 0, "=Molecule(item).molecularFormula()", "The molecular formula.");
dbdef.addField("Molecule", "Weight", "NUMERIC", 0, "=Molecule(item).molecularWeight()", "The molecular weight.");
dbdef.addField("Molecule", "Svg", "SVGPICT", 0, "-SVG-", "An svg picture of the molecule.");
dbdef.addField("Molecule", "ID", "TEXT", 100, "=item.uuid", "A unique identifier for each molecule.");
See also: addItemType, hasField, removeField
addItemType ( String aName, String aType, String aComment ): Boolean
-
-
Valid values: {"COMP", "GENERIC", "NMR"}
-
See also: addField, hasItemType, removeItemType
contentDef ( String aItemType, String aFieldName ): String
-
-
var dbdef = DBDefinition.defaultDefinition("MyDatabase");
var itemTypes = dbDef.itemTypes();
for (var i=0; i<itemTypes.length; i++)
{
var fields = dbdef.fields(itemTypes[i]);
for (var f=0; f<fields.length; f++)
{
print ("ItemType=" + itemTypes[i]);
print ("Field name=" + fields[f]);
print ("Content Def=" + dbdef.contentDef(itemTypes[i], fields[f]));
}
}
See also: addField
defaultDefinition ( [String aName = ""] ): DBDefinition
-
See also: emptyDefinition
emptyDefinition ( [String aName = ""] ): DBDefinition
-
See also: addField, addItemType, defaultDefinition
fields ( String aItemType ): Array
-
hasField ( String aItemType, String aName ): Boolean
-
-
See also: addField, hasItemType, removeField
hasItemType ( String aItemType ): Boolean
-
See also: addItemType, hasField, removeItemType
itemTypes ( ): Array
See also: addItemtype, fields, hasItemtype
removeField ( String aItemType, String aName ): Boolean
-
-
// Dont store any preview pictures:
var dbdef = DBDefinition.defaultDefinition("MyDatabase");
dbdef.removeField("Molecule", "Preview");
dbdef.removeField("Spectrum", "Preview");
dbdef.removeField("MNmova", "Preview");
See also: addField, hasField, removeItemType
removeItemType ( String aName ): Boolean
-
// Dont store any molecules:
var dbdef = DBDefinition.defaultDefinition("MyDatabase");
dbdef.removeItemType("Molecule");
See also: addItemType, removeField
toString ( ): String
toXml ( ): String
type: String
See also: DBDefinition.addItemType
DBItem ( )
DBItem ( String aType )
DBItem ( DBItem aItem )
-
addField ( String aFieldName, Variant aValue )
-
-
See also: DBDefinition.addField, field, removeField
field ( String aFieldName ): Variant
-
See also: fieldNames, setField
fieldNames ( ): Array
hasField ( String aFieldName ): Boolean
-
removeField ( String aFieldName )
-
See also: DBDefinition.removeField, field, setField
setField ( String aFieldName, Variant aValue )
-
-
var item = new DBItem("Molecule");
dbitem.setField("Name", "Catechin");
dbitem.setField("Formula", "C15H14O6");
dbitem.setField("AtomCount", 21);
dbitem.setField("Mass", 290.08);
print(dbitem);
See also: DBDefinition.addField, field, removeField
toString ( ): String
client: DBClient [read-only]
mainWindow.doAction("dbDatabaseOpen");
print(DBPlugin.client.database);
See also: createClient, DBClient
addRecord ( DBClient aClient, Array aItems ): int [deprecated]
-
See also: DBClient
-
See also: DBClient.saveRecord, getRecord
createBrowser ( Array aRecords )
-
var records = [];
for (var r = 1; r <= 3; r++) {
print("Retrieving record {0} of 3...").format(r));
record = DBPlugin.getRecord(DBPlugin.client, r, false);
records.push(record);
}
DBPlugin.createBrowser(records);
createClient ( ): DBClient
getRecord ( DBClient aClient, int aRecordId, [Boolean aPaste = true] ): DBRecord
-
See also: DBClient
-
-
var db = DBPlugin.createClient();
db.connect("localhost", 5504, "test", "secret", "testdb");
if (!db.connected())
MessageBox.critical("Could not connect to database testdb as user test.");
else {
var dw = mainWindow.newDocument();
var recid = 1;
var paste = true;
var record = DBPlugin.getRecord(db, recid, paste);
MessageBox.information("Pasted " + dw.itemCount() + " items from record id " + recid + ".")
db.disconnect();
}
getRecordItems ( DBClient aClient, Number aRecordId ): Array [deprecated]
-
See also: DBClient
-
See also: addRecord
search ( DBClient aDBClient, String aQuery, [String aSearchType = "TEXT"], [String aItemType = ""], [String aFieldName = ""], [Number aMaxHits = 1000], [Number aMaxRecords = 100], [Number aMinHitQuality = 1000] ): DBSearchHits
-
See also: createClient
-
-
Valid values: {"CHEMSTRC", "DATETIME", "MOLFORM", "MULTIPLETLIST1A", "NUMERIC", "PEAKLIST1A", "PEAKLIST2A", "TEXT"}
-
-
-
-
-
var db = DBPlugin.createClient();
db.connect("localhost", 5504, "test", "secret", "testdb");
if (!db.connected())
MessageBox.critical("Could not connect to database testdb as user test.");
else {
// Search for "-" in all text fields of all items, return max. 1000 hits:
var hits = DBPlugin.search(db, "-");
print (hits.length + " hits found.");
for( var h = 0; h < hits.length; h++ )
{
var hit = hits.at(h);
print(" Hit " + h + ": Record=" + hit.recordId() + " Item=" + hit.itemId() + " Score=" + hit.score());
}
db.disconnect();
}
See also: DBSearchHits, getRecord
toString ( ): String
See also: DBPlugin.getRecord
id ( ): Number
items ( ): Array
See also: DBItem
toString ( ): String
url ( ): String
See also: DBPlugin.search, DBSearchHits.at
See also: DBPlugin.search
count: Number [read-only]
length: Number [read-only]
See also: DBSearchHits.count
at ( Number aIndex ): DBSearchHit
-
cancelButtonText: String
enabled: Boolean
okButtonText: String
title: String
Dialog ( )
absPath: String
exists: Boolean
name: String
Dir ( String aDirPath )
Dir ( Dir aDir )
Dir.alphanumericPathsCompare ( String aPath1, String aPath2 ): Number
var samplesDir = new Dir("c:/samples")
var mayDatasets = samplesDir.entryListAdv("2010-05-??/*/pdata/1/1r")
mayDatasets.sort(Dir.numericPathsCompare)
Dir.appDataCommon ( ): String
See also: Dir.appDataUser
Dir.appDataUser ( ): String
See also: Dir.appDataCommon
Dir.application ( ): String
canonicalPath ( ): String
Dir.canonicalPath ( String aDirPath ): String
cd ( String aDirName ): Boolean
cdUp ( ): Boolean
Dir.cleanDirPath ( String aDirPath ): String
Dir.convertSeparators ( String aDirPath ): String
Dir.copy ( Dir aSrcDir, Dir aDstDir ): Boolean
Dir.current ( ): String
Dir.drives ( ): Array
entryInfoList ( String aWildcard, Number aKind = 0, Number aSortFlags = 0 ): Array
-
-
Valid values: {Dir.AccessMask, Dir.All, Dir.Dirs, Dir.Drives, Dir.Executable, Dir.Files, Dir.Hidden, Dir.Modified, Dir.NoSymLinks, Dir.Readable, Dir.RWEMask, Dir.System, Dir.TypeMask, Dir.Writable}
-
Valid values: {Dir.DirsFirst, Dir.IgnoreCase, Dir.Name, Dir.Reversed, Dir.Size, Dir.SortByMask, Dir.Time, Dir.Type, Dir.Unsorted}
entryList ( String aWildcard, Number aKind = 0, Number aSortFlags = 0 ): Array
-
-
Valid values: {Dir.AccessMask, Dir.All, Dir.Dirs, Dir.Drives, Dir.Executable, Dir.Files, Dir.Hidden, Dir.Modified, Dir.NoSymLinks, Dir.Readable, Dir.RWEMask, Dir.System, Dir.TypeMask, Dir.Writable}
-
Valid values: {Dir.DirsFirst, Dir.IgnoreCase, Dir.Name, Dir.Reversed, Dir.Size, Dir.SortByMask, Dir.Time, Dir.Type, Dir.Unsorted}
entryListAdv ( String aPathWildcard, Number aDirsSortFlags = Dir.Name, Number aFilesSortFlags = Dir.Name ): Array
-
-
Valid values: {Dir.DirsFirst, Dir.IgnoreCase, Dir.Name, Dir.Reversed, Dir.Size, Dir.SortByMask, Dir.Time, Dir.Type, Dir.Unsorted}
-
Valid values: {Dir.DirsFirst, Dir.IgnoreCase, Dir.Name, Dir.Reversed, Dir.Size, Dir.SortByMask, Dir.Time, Dir.Type, Dir.Unsorted}
var samplesDir = new Dir("c:/samples")
var mayDatasets = samplesDir.entryListAdv("2010-05-??/*/pdata/1/1r")
fileExists ( String aName ): Boolean
filePath ( String aFileName ): String
Dir.home ( ): String
mkdir ( String aDirName ): Boolean
mkpath ( String aDirPath ): Boolean
Dir.numericPathsCompare ( String aPath1, String aPath2 ): Number
var samplesDir = new Dir("c:/samples")
var mayDatasets = samplesDir.entryListAdv("2010-05-??/*/pdata/1/1r")
mayDatasets.sort(Dir.numericPathsCompare)
rename ( String aOldName, String aNewName ): Boolean
rmdir ( String aDirName ): Boolean
rmpath ( String aDirPath ): Boolean
Dir.root ( ): String
Dir.searchPaths ( String aPrefix )
Dir.setCurrent ( String aDirPath ): Boolean
Dir.temp ( ): String
toString ( ): String
docItems: Array [read-only]
See also: pageItems
molTableItems: Array [read-only]
name: String [read-only]
orientation: String
Valid values: {"Landscape", "Portrait"}
pageItems: Array [read-only]
See also: docItems
templateHistory: Boolean
uuid: String [read-only]
Document ( )
See also: addDocument
See also: lockDocument
Document ( String aPath )
function createDocument()
{
//creates empty document
var doc = new Document();
//or create a document from a File
//var doc = new Document("/path/to/mnova/file");
//imports data to the document
serialization.importFile("/path/to/a/file/to/import", "", doc);
//lock the document before running more tasks on it
Application.lockDocument(doc);
//mainWindow.activeDocument will always return doc in this block
//... do the things to be done
settings.save("/path/to/save/result.mnova", "mnova");
//unlock the document when done
Application.unlockDocument();
//add the document to the MainWindow if we want to show the result to the user
mainWindow.addDocument(doc);
//or destroy the document if we don't want to show the result
//doc.destroy();
}
See also: addDocument
See also: lockDocument
See also: importFile
Document ( Document aDoc )
addPage ( Number aIndex )
applyTemplateDocument ( String aFileName, Object aOptions = undefined )
-
-
applyTemplateDocument('c:/MyTemplates/MyLayoutTemplate.mnova', {applyProcessing: false, applyZoom: true, applySinglePageTemplateToCurrentPage: true})
attachmentNames ( ): Array
clonePages ( Array aPages ): Array
-
close ( )
curPage ( ): Page
See also: setCurPage, setCurPageIndex
Document.deleteItems ( PageItem | Array aPageItems )
-
deletePages ( Array aPages )
-
destroy ( )
getActiveItem ( )
See also: setActiveItem
getActiveItem ( aType )
See also: setActiveItem
getAttachment ( String aName ): Attachment
getItem ( String aUuid ): PageItem
-
getMolTableItem ( String aMoleculeID ): PageItem
-
getMolTableItem ( Number aIndex ): PageItem
-
getMolTableItemCount ( ): Number
isValid ( ): Boolean
item ( Number aIndex, String aType ): PageItem
-
-
Valid values: {"Arrow", "Ellipse", "Graph", "Image", "Layout Template", "Mass Spectrum", "Molecule", "NMR Spectrum", "OLE Object", "Polygon", "Rectangle", "Text", "UVIR spectrum"}
See also: itemCount
item ( Number aIndex ): PageItem
See also: itemCount
itemCount ( ): Number
itemCount ( String aType ): Number
-
Valid values: {"Arrow", "Ellipse", "Graph", "Image", "Layout Template", "Mass Spectrum", "Molecule", "NMR Spectrum", "OLE Object", "Polygon", "Rectangle", "Text", "UVIR spectrum"}
itemsByName ( String aType1, ..., String aTypeN ): Array
movePages ( Number aIndex, Page | Array aPages )
newPage ( Boolean atEnd )
page ( Number String aPageId ): Page
-
pageCount ( ): Number
pageIndex ( Page aPage ): Number
pages ( ): Array
pagesIds ( ): Array
print ( )
removeAttachment ( String aName ): Boolean
selectedMolTableItems ( ): Array
See also: setSelectedMolTableItems
selectedPages ( ): Array
See also: selection, setSelectedPages, setSelection
selection ( ): Array
setActiveItem ( PageItem aItem )
See also: getActiveItem
setAttachment ( String aName, Attachment aAttachment ): Boolean
setCurPage ( Page Number String aPage )
-
See also: curPage, setCurPageIndex
setCurPageIndex ( Number aPageIndex )
See also: curPage, setCurPage
setSelectedMolTableItems ( Array aItems )
See also: selectedMolTableItems
setSelectedPages ( Array aPages )
-
See also: selectedPages, selection, setSelection
setSelection ( Array aItems )
update ( )
decimals: Number
enabled: Boolean
maximum: Number
minimum: Number
prefix: String
singleStep: Number
suffix: String
value: Number
DrawPlugin ( DrawPlugin aDrawPlugin )
arrow ( Number aStartX, Number aStartY, Number aEndX, Number aEndY, Boolean aShowStartHead, Boolean aShowEndHead ): Arrow
-
-
-
-
-
-
ellipse ( Number aWidth, Number aHeight ): Ellipse
-
-
rectangle ( Number aWidth, Number aHeight ): Rectangle
-
-
text ( String aText, Boolean aIsHtml ): Text
-
-
toPixmap ( PageItem | Array | Page aObj, Number aDpi ): Pixmap
toString ( ): String
Ellipse ( Ellipse aEllipse )
absDirPath: String
exists: Boolean
name: String
size: Number
File ( String aFileName )
File ( File aFile )
File.absDirPath ( String aFileName ): String
close ( ): Boolean
File.copy ( String aFileName, String aNewFileName ): Boolean
File.create ( String aFileName ): Boolean
File.exists ( String aFileName ): Boolean
open ( Number aMode ): bool
-
Valid values: {File.Append, File.NotOpen, File.ReadOnly, File.ReadWrite, File.WriteOnly}
File.permissions ( String aFileName ): Number
See also: File.setPermissions, permissions
permissions ( ): Number
See also: File.permissions, setPermissions
remove ( ): Boolean
File.remove ( String aFileName ): Boolean
File.rename ( String aOldFileName, String aNewFileName ): Boolean
setPermissions ( Number aPermissions ): Boolean
-
Valid values: {File.ExeGroup, File.ExeOther, File.ExeOwner, File.ExeUser, File.ReadGroup, File.ReadOther, File.ReadOwner, File.ReadUser, File.WriteGroup, File.WriteOther, File.WriteOwner, File.WriteUser}
See also: File.setPermissions, permissions
File.setPermissions ( String aFileName, Number aPermissions ): Boolean
-
Valid values: {File.ExeGroup, File.ExeOther, File.ExeOwner, File.ExeUser, File.ReadGroup, File.ReadOther, File.ReadOwner, File.ReadUser, File.WriteGroup, File.WriteOther, File.WriteOwner, File.WriteUser}
See also: File.permissions, setPermissions
FileDialog.getExistingDirectory ( String aStartDirectory, String aDialogTitle ): String
FileDialog.getOpenFileName ( String aFileFilter, String aDialogTitle, String aWorkingDirectory ): String
FileDialog.getOpenFileNames ( String aFileFilter, String aDialogTitle, String aWorkingDirectory ): Array
FileDialog.getSaveFileName ( String aFileFilter, String aDialogTitle, String aWorkingDirectory, Number aFlag ): String
-
Valid values: {"1" Only show directories in the file dialog. By default both files and directories are shown. (Valid only in the Directory file mode.), "10" Don't use the native file dialog. By default, the native file dialog is used., "2" Don't resolve symlinks in the file dialog. By default symlinks are resolved., "20" Indicates that the model is readonly., "4" Don't ask for confirmation if an existing file is selected. By default confirmation is requested., "40" Indicates if the file name filter details are hidden or not.}
var filename = FileDialog.getSaveFileName("*.txt","Choose file","c:\temp\file.txt",4)
//Don't ask for confirmation if an existing file is selected;
absoluteFilePath: String
baseName: String
created: Date
exists: Boolean
fileName: String
isDir: Boolean
isFile: Boolean
lastModified: Date
lastRead: Date
path: String
size: Number
suffix: String
delay: Number
See also: directoryChangedExt
filters: Number
Valid values: {Dir.AccessMask, Dir.All, Dir.Dirs, Dir.Drives, Dir.Executable, Dir.Files, Dir.Hidden, Dir.Modified, Dir.NoSymLinks, Dir.Readable, Dir.RWEMask, Dir.System, Dir.TypeMask, Dir.Writable}
See also: Dir.entryList, directoryChangedExt
ignoreOld: Boolean
See also: directoryChangedExt
maxDepth: Number
See also: directoryChangedExt
maxNotifyDepth: Boolean
maxOldDays: Number
nameFilters: Array
See also: directoryChangedExt
paths: Array
timeOutMinutes: Number
See also: useSystemBackend
useFastHash: Boolean
useMultiThread: Boolean
useSystemBackend: Boolean
See also: timeOutMinutes
FileSystemWatcher ( Array aPathArray )
-
error: Number
from: Number
name: String
peaks: Array
See also: Peak.id
to: Number
FitRegion ( FitRegion aFitRegion )
FitRegion ( Number aFrom, Number aTo )
FitRegion ( Number aFrom, Number aTo, NMRSpectrum aSpc )
calculateError ( NMRSpectrum aSpectrum )
isParameterLocked ( Number aParameter, String aPeakId ): Boolean
-
See also: FitRegion.Parameter
-
See also: Peak.id
lockParameter ( Boolean aLock, Number aParameter, [String aPeakId] )
-
-
See also: FitRegion.Parameter
-
See also: Peak.id
toString ( ): String
fitModels: Array [read-only]
See also: GraphFitModel
responseFactor: GraphResponseFactor [read-only]
seriesCount: Number [read-only]
specIds: Array [read-only]
xData: Array [read-only]
yData: Array [read-only]
yModels: Array [read-only]
See also: GraphYModel
See also: Graph
fitParams: Object
fomula: String
GraphFitModel ( Number aFitFunction )
See also: GraphFitModel.FitFunction
GraphFitModel ( String aFormula, Object aFitParams )
See also: GraphFitModel.formula
See also: GraphFitModel.fitParams
See also: Graph
func: Object
InitConcentration: Number
mode: Number
See also: GraphResponseFactor.Mode
PULCON: Number
units: String
GraphResponseFactor ( Number aMode, Number aValue )
GraphResponseFactor ( Number aMode, String aFormula )
See also: Graph
ExtractMode: Number = {emConcentration, emIntegral, emMaxPeakInt, emMaxPeakPos, emNone, emPeakInt, emShift}
extractMode: Number
See also: ExtractMode
f1From: Number
f1To: Number
label: String
nNuclides: Number
GraphYModel ( aMod, from, to, nNuclides )
See also: GraphYModel.extractMode
See also: GraphYModel.f1From
See also: GraphYModel.f1To
See also: GraphYModel.nNuclides
checkable: Boolean
checked: Boolean
enabled: Boolean
title: String
GroupBox ( )
centroid: Number [read-only]
effPeaks: Number [read-only]
integral: Number [read-only]
kurtosis: Number [read-only]
rmsWidth: Number [read-only]
skewness: Number [read-only]
count: Number [read-only]
length: Number [read-only]
See also: GSDMultiplets.count
totalIntegral: Number [read-only]
at ( Number aIndex ): GSDMultiplet
-
Flags: Number = {C13Satellite, Hidden, Labile, None, Rotational, Weak}
Types: Number = {Artifact, Compound, Impurity, QReference, Solvent, SReference}
area: Number [read-only]
center: Number [read-only]
flags: GSDPeak.Flags
height: Number [read-only]
phase: Number [read-only]
type: GSDPeak.Types
width: Number [read-only]
setFlag ( GSDPeak.Flags aFlag, [Boolean aEnable] )
-
-
count: Number [read-only]
length: Number [read-only]
See also: GSDPeaks.count
InputDialog.getDouble ( String aTitle, String aLabel, Number aValue, Number aMin, Number aMax, Number aDecimals ): Number
InputDialog.getInt ( String aTitle, String aLabel, Number aValue, Number aMin, Number aMax, Number aStep ): Number
InputDialog.getItem ( String aTitle, String aLabel, Array aItems, Number aCurrent, Boolean aEditable ): String
InputDialog.getText ( String aTitle, String aLabel, LineEdit.EchoMode aEchoMode, String aText ): String
calculationParams: Object [read-only]
id: String [read-only]
Integral ( Integral aIntegral )
Integral ( NMRSpectrum aSpectrum, SpectrumRegion aSpectrumRegion, Boolean aEllipse = true )
-
Integrals ( )
Integrals ( Integrals aIntegralList )
echoMode: LineEdit.EchoMode
enabled: Boolean
label: String
text: String
items: Array
selectedRows: Array [read-only]
selection: Array [read-only]
activeDocument: Document
enableUndo: Boolean
hasGui: Boolean
MainWindow ( MainWindow aMainWnd )
abort ( )
addDocument ( Document aDocument )
-
blockEventHandlers ( String aEvent, Boolean aBlock ): Boolean
-
See also: installEventHandler
clearStatusMessage ( )
doAction ( String aActName )
documents ( ): Array
endBusy ( )
See also: setBusy
getObject ( String aObjectName )
-
installEventHandler ( String aEventName, String aFunctionName )
-
Valid values: {"dbItemsPasted", "KeyPress", "MouseButtonDblClick", "MouseButtonPress", "MouseButtonRelease", "MouseMove", "msChromPeaksChanged", "msSpectrumImported", "nmrAssignmentHighlighted", "nmrAssignmentMade", "nmrIntegralChanged", "nmrMultipletChanged", "nmrMultipletHighlighted", "nmrSpectrumChanged", "nmrSpectrumImported", "selectionChanged", "ShortcutOverride", "verificationResult"}
-
See also: blockEventHandlers
newDocument ( ): Document
processEvents ( )
registerDockWidget ( String aDockWidgetName, String aTitle, String aCategory, function aCreationFunction )
-
-
-
-
removeEventHandler ( String aEventName, String aFunctionName )
-
Valid values: {"dbItemsPasted", "KeyPress", "MouseButtonDblClick", "MouseButtonPress", "MouseButtonRelease", "MouseMove", "nmrAssignmentHighlighted", "nmrAssignmentMade", "nmrIntegralChanged", "nmrMultipletChanged", "nmrMultipletHighlighted", "nmrSpectrumImported", "ShortcutOverride"}
-
See also: blockEventHandlers
restoreCursor ( )
See also: endBusy, setWaitCursor
setBusy ( String aMessage )
-
See also: endBusy
setStatusMessage ( String aMessage )
-
See also: clearStatusMessage, setBusy
setWaitCursor ( )
See also: restoreCursor, setBusy
sleep ( Number aTime )
-
waitForInput ( String aText, String aWindowTitle = "" )
-
-
area: Number
center: Object
end: Object
height: Number
start: Object
type: MassItem.ChromatogramPeakType
eicData: Array [read-only]
range: Object [read-only]
totalArea: Number [read-only]
valid: Boolean [read-only]
absErr: Number
dbe: Number
fitness: Number
formula: String
mass: Number
mDaErr: Number
ppmErr: Number
Adduct: String
chargeState: Number
dbe: Object
// Getting dbe
var myDBE = msItem.elementalComp.settings.dbe;
print(myDBE.min);
print(myDBE.max);
// Setting dbe
myDBE.min = 1.5;
myDBE.max = 25;
msItem.elementalComp.settings.dbe = myDBE;
// Setting dbe using another way
var myDBE2 = new Object();
myDBE2.min = -0.5;
myDBE2.max = 50.0;
msItem.elementalComp.settings.dbe = myDBE2;
electronMode: String
Valid values: {"All", "Even", "Odd"}
elements: Array
fitnessTheshold: Number
maxResults: Number
tolerance: Object
// Getting tolerance
var tol = msItem.elementalComp.settings.tolerance;
print(tol.units);
print(tol.value);
// Setting tolerance
tol.units = "ppm";
tol.value = 10;
msItem.elementalComp.settings.tolerance = tol;
// Setting tolerance using another way
var tol2 = new Object();
tol2.units = "Da";
tol2.value = 0.5;
msItem.elementalComp.settings.tolerance = tol2;
results: Array [read-only]
settings: MassElCompSettings
analyzerType: MassItem.MSAnalyzer [read-only]
count: Number [read-only]
index: Number [read-only]
msmsType: MassItem.FunctionMSMSType [read-only]
msType: MassItem.FunctionMSType [read-only]
name: String [read-only]
order: Number [read-only]
polarity: MassItem.FunctionPolarity [read-only]
getItem ( Number aIndex ): MassFunctionInfo
-
functions: MassFunctionsInfo [read-only]
index: Number [read-only]
name: String [read-only]
traces: MassTracesInfo [read-only]
getItem ( Number aIndex ): MassInjectionInfo
-
ChromatogramPeakType: Number = {BB, BV, Shoulder, Unknown, VB, VV}
ChromatogramType: Number = {BPC, MZ, TIC, Trace, Unknown, UV, UVTAbs}
DataTypes: Number = {Chromatogram, Spectrum, Unknown, UVSpectrum}
FunctionMSMSType: Number = {NeutralLoss, None, Precursor, Product}
FunctionMSType: Number = {MS, MSn, SIMMS, SIMMSn, Unknown, ZoomMS, ZoomMSn}
FunctionPolarity: Number = {Mixed, Negative, Positive, Unknown}
FunctionPolarity: Number = {Mixed, Negative, Positive, Unknown}
MSAnalyzer: Number = {Constant, FTMS, Other, Proportional, TOF, Unknown}
SpectrumSelMode: Number = {Manual, Peak, PeakSub}
appendSelected: Boolean
automaticTraceAlignmentParameters: AutoTraceAlignmentParams [read-only]
datasetFileName: String [read-only]
elementalComp: MassElemComposition [read-only]
hasFullDataset: Boolean [read-only]
See also: MassPlugin.fetchFullDataset, MassPlugin.releaseFullDataset
info: MassItemInfo [read-only]
layoutProperties: MassLayoutProperties [read-only]
molMatch: MassMolMatch [read-only]
parameters: Object [read-only]
plotsCount: Number [read-only]
selectionMode: MassItem.SpectrumSelMode
msItem.selectionMode = MassItem.SpectrumSelMode.Peak
spectrumSelectionTarget: String
See also: MassItem.selectSpectra, MassItemPlot.id
MassItem ( MassItem aItem )
alignForBackgroundSubtraction ( MassItem aBackgroundMassItem, Number aForeInjectionIndex, Number aForeFunctionIndex, Number aBackInjectionIndex, Number aBackFunctionIndex, Array aReferenceIons, [String aAdduct], [String aLoss] ): Object
-
-
-
-
-
-
//Example 1
var refIons = new Array();
refIons[0] = new Object();
refIons[0].formula = "C7H6O2";
//The following lines are optional
refIons[0].foreground = new Object();
refIons[0].foreground.from = 5.2
refIons[0].foreground.to = 7.3
refIons[0].background = new Object();
refIons[0].background.from = 4.5
refIons[0].background.to = 6.8
refIons[1] = new Object();
refIons[1].formula = "CeI";
//The following lines are optional
refIons[1].foreground = new Object();
refIons[1].foreground.from = 1.0
refIons[1].foreground.to = 2.0
refIons[1].background = new Object();
refIons[1].background.from = 0.5
refIons[1].background.to = 1.3
//Example 2 same object as previous but using JSON syntax
var refIons2 = [
{
"formula" : "C7H6O2",
"foreground" : { "from" : 5.2, "to" : 7.3 },
"background" : { "from" : 4.5, "to" : 6.8 },
},
{
"formula" : "CeI",
"foreground" : { "from" : 1.0, "to" : 2.0 },
"background" : { "from" : 0.5, "to" : 1.3 },
},
];
-
-
See also: applyMSBackgroundSubtraction aRTIndex parameter, applyUVBackgroundSubtraction aRTIndex parameter
alignTracesRT ( Number aOldRT, Number aNewRT, Number aPlotIndex ): Boolean
-
-
-
alignTracesRT ( Number aOldRT, Number aNewRT, String aPlotId ): Boolean
-
-
-
applyAutomaticTraceAlignment ( )
applyMSBackgroundSubtraction ( MassItem aBackgroundMassItem, Number aForeInjectionIndex, Number aForeFunctionIndex, Number aBackInjectionIndex, Number aBackFunctionIndex, [Object aRTIndex] ): Boolean
-
-
-
-
-
-
The arrays must be the same size and each must be in strictly increasing order (They will be sorted to meet this).
If the arrays are empty, background time is identical to foreground time. If there is one entry then background time is
computed by adding a delta to foreground time. Otherwise linear interpolation and extrapolation are used to determine the
background time.
// Example syntax 1:
var rtIndex1 = new Object();
rtIndex1.foreground = [0.5, 4.5];
rtIndex1.background = [5.0, 10.0];
// Example syntax 2:
var rtIndex2 = { "foreground" : [0.5, 4.5], "background" : [5.0, 10.0] };
See also: alignForBackgroundSubtraction
applyUVBackgroundSubtraction ( MassItem aBackgroundMassItem, Number aForeInjectionIndex, Number aBackInjectionIndex, [Object aRTIndex] ): Boolean
-
-
-
calculatePeakPurity ( String aPlotId, Number aFromRT, [Number aToRT] ): Object
-
-
-
clearMSBackgroundSubtraction ( Number aInjectionIndex, Number aFunctionIndex )
-
-
clearPeakPurity ( [String aPlotId] )
-
clearUVBackgroundSubtraction ( Number aInjectionIndex )
-
deletePlot ( Number aPlotIndex ): Boolean
-
deletePlot ( String aPlotId ): Boolean
-
hidePlot ( Number aPlotIndex ): Boolean
-
hidePlot ( String aPlotId ): Boolean
-
movePlot ( Number aSrcPlotIndex, Number aDstPlotIndex ): Boolean
-
-
newChromatogram ( Object aChromDef ): Boolean
-
function test_NewChromatogram()
{
var msItem = mass.activeItem();
if( msItem != undefined ) {
// Open a TIC (Total Ion Current chromatogram):
// method 1:
var parm1 = new Object();
parm1.injectionIndex = 0;
parm1.functionIndex = 0;
// Opens TIC for function 0 of injection 0
msItem.newChromatogram(parm1);
//method2:
var parm2 = new Object();
parm2.injectionIndex = 0;
parm2.functionIndex = 0;
parm2.type = "TIC";
// Opens TIC for function 0 of injection 0
msItem.newChromatogram(parm2);
// Open a BPC (Base Peak Chromatogram):
var parm3 = new Object();
parm3.injectionIndex = 0;
parm3.functionIndex = 0;
parm3.type = "BPC";
// Opens BPC for function 0 of injection 0
msItem.newChromatogram(parm3);
// Open a chromatogram for a given m/z value
var parm4 = new Object();
parm4.injectionIndex = 0;
parm4.functionIndex = 0;
parm4.type = "Mass";
parm4.fromMZ = 20.0;
// Opens a Masschromatogram for function 0 of injection 0 for m/z value 20.0
msItem.newChromatogram(parm4);
// Open a chromatogram for a given m/z range
var parm5 = new Object();
parm5.injectionIndex = 0;
parm5.functionIndex = 0;
parm5.type = "Mass";
parm5.fromMZ = 20.0;
parm5.toMZ = 40.0;
// Opens a Masschromatogram for function 0 of injection 0 for m/z range [ 20.0, 40.0 ]
msItem.newChromatogram(parm5);
// Open a DAD Total absorbance chromatogram
var parm6 = new Object();
parm6.injectionIndex = 0;
parm6.traceIndex = "DAD";
parm6.type = "TABS";
msItem.newChromatogram(parm6);
// Open a DAD chromatogram for a given wavelength
var parm7 = new Object();
parm7.injectionIndex = 0;
parm7.traceIndex = "DAD";
parm7.type = "UV";
parm7.fromWaveLength = 250; //In nm
parm7.tolerance = 0.5; //In nm. Optional, if not specified, 0.5 used
msItem.newChromatogram(parm7);
// Open a DAD chromatogram for a wavelength range
var parm8 = new Object();
parm8.injectionIndex = 0;
parm8.traceIndex = "DAD";
parm8.type = "UV";
parm8.fromWaveLength = 200; //In nm
parm8.toWaveLength = 300; //In nm
msItem.newChromatogram(parm8);
msItem.update();
}
}
plot ( [Number aPlotIndex] ): MassItemPlot
-
See also: plotsCount
plot ( [String aPlotID] ): MassItemPlot
-
See also: MassItemplot.id, plot
plotByType ( MassItem.DataTypes aType ): MassItemPlot
-
See also: DataTypes
selectMolMatchResult ( Number aIndex ): Boolean
-
selectSpectra ( MassItemPlot aChromPlot, Number aRT, [Boolean aSubtract = false] ): Boolean
-
-
-
function test_SpecSelection()
{
var msItem = mass.activeItem();
if( msItem != undefined ) {
var tic = msItem.plot(0);
var ok = msItem.selectSpectra(tic, 8.263);
print(ok);
ok = msItem.selectSpectra(tic, 9.0, true);
print(ok);
msItem.update();
}
}
selectSpectra ( MassItemPlot aChromPlot, Number aStartRT, Number aEndRT, [Boolean aSubtract = false] ): Boolean
-
-
-
-
function test_SpecSelection()
{
var msItem = mass.activeItem();
if( msItem != undefined ) {
var tic = msItem.plot(0);
var ok = msItem.selectSpectra(tic, 8.0, 9.0);
print(ok);
ok = msItem.selectSpectra(tic, 8.3, 9.0, true);
print(ok);
msItem.update();
}
}
selectUVSpectra ( MassItemPlot aChromPlot, Number aRT ): Boolean
-
-
selectUVSpectra ( MassItemPlot aUVChromPlot, Number aStartRT, Number aEndRT ): Boolean
-
-
-
showPlot ( Number aPlotIndex ): Boolean
-
showPlot ( String aPlotId ): Boolean
-
injections: MassInjectionsInfo [read-only]
valid: Boolean [read-only]
chromatogramType: MassItem.ChromatogramType [read-only]
dataPoints: Array [read-only]
function example()
{
var msItem = mass.activeItem();
if( msItem != undefined ) {
var plot = msItem.plot(0);
var firstPoint = plot.dataPoints[0];
print("First point is: (" + firstPoint.x + ", " + firstPoint.y + ")");
}
}
description: String [read-only]
fullScale: Object [read-only]
function example()
{
var msItem = mass.activeItem();
if( msItem != undefined ) {
var plot = msItem.plot(0);
var scale = plot.fullScale;
print("Horz Scale: [" + scale.horizontal.from + ";" + scale.horizontal.to + "]");
print("Vert Scale: [" + scale.vertical.from + ";" + scale.vertical.to + "]");
}
}
functionIndex: Number [read-only]
See also: MassFunctionsInfo.getItem
id: String [read-only]
injectionIndex: Number [read-only]
See also: MassInjectionsInfo.getItem
minAreaThreshold: Number [deprecated]
NOTE: This method is only meaningfull for chromatogram plots.
Check the MassItemPlot's type property.
peakDetectionSettings: Object [read-only]
peakPurityOptions: MassChromPeakPurityOptions
peakPurityResult: MassChromPeakPurityResult [read-only]
peaks: Array [read-only]
properties: MassPlotProperties [read-only]
scale: Object [read-only]
function example()
{
var msItem = mass.activeItem();
if( msItem != undefined ) {
var plot = msItem.plot(0);
var scale = plot.scale;
print("Horz Scale: [" + scale.horizontal.from + ";" + scale.horizontal.to + "]");
print("Vert Scale: [" + scale.vertical.from + ";" + scale.vertical.to + "]");
}
}
times: Object [read-only]
traceIndex: Number [read-only]
See also: MassTracesInfo.getItem
type: MassItem.DataTypes [read-only]
visible: Boolean [read-only]
appendPeak ( Number aStartRT, Number aEndRT ): Boolean
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
-
clearPeaks ( )
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
detectPeaks ( )
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
modifyPeak ( Number aPeakIndex, Number aStartRT, Number aEndRT ): Boolean
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
-
-
removePeak ( Number aPeakIndex ): Boolean
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
removePeak ( Number aStartRT, Number aEndRT ): Boolean
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
-
zoom ( [String aScale], [Object aRange] )
-
Valid values: {"horizontal", "horz", "vert", "vertical"}
-
dataTypes: Number
layout: MassLayoutProperties.LayoutTypes
order: Number
plotTypes: Number
polarity: MassLayoutProperties.Polarity
DataTypes: Number = {AnyData, DADData, MassData, TracesData}
LayoutTypes: Number = {GridHorizontal, GridVertical, Horizontal, Vertical}
PlotTypes: Number = {AnyPlot, ChromatogramPlot, MassSpectrumPlot, UVSpectrumPlot}
Polarity: Number = {AnyPol, MixedPol, NegativePol, PositivePol}
groups: Array [read-only]
layout: LayoutTypes
addGroup ( Object aGroupDesc ): Number
-
removeGroup ( Number aIndex )
-
results: Array [read-only]
settings: MassMolMatchSettings
adduct: String [read-only]
functionIndex: Number [read-only]
See also: MassFunctionsInfo.getItem, MassInjectionInfo.functions
loss: String [read-only]
matched: Boolean [read-only]
moleculeId: String [read-only]
polarity: MassItem.FunctionPolarity [read-only]
See also: MassFunctionInfo.polarity
purity: Number [read-only]
retTime: Number [read-only]
scan: Number [read-only]
score: Number [read-only]
similarity: Number [read-only]
adductsNeg: Array
adductsPos: Array
enableDimers: Boolean
maxChargeNeg: Number
maxChargePos: Number
maxMatchesPerMolecule: Number
maxMatchesPerSpectrum: Number
msmsTolerance: Number
msTolerance: Number
scoreThreshold: Number
toleranceUnits: String
Valid values: {"Da", "Ppm"}
horizontal: MassPlotAxisProps
vertical: MassPlotAxisProps
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
isBoxVisible: Boolean
opacity: Number
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
opacity: Number
visible: Boolean
colorMode:
Valid values: {Brightness, Hue, Opacity, Saturation, Sequence}
highlight: MassPlotPeakPurityHldProps
visible: Boolean
axes: MassPlotAxesProps
background: PlotBackgroundProps
grid: PlotGridProps
highlight: MassPlotHighlightProps
line: Plot1DLineProps
peakPurity: MassPlotPeakPurityProps
peaks: PlotChromPeaksProps
title: PlotTitleProps
function test()
{
var msItem = mass.activeItem();
if( msItem != undefined ) {
var plot = msItem.plot();
var oldAxes = plot.properties.axes;
//Set directly
plot.properties.axes.horizontal.label.text = "X axis";
plot.properties.axes.horizontal.visible = true;
//Set by creating a new object and setting only the values we want to change
var hnew = new Object();
hnew.visible = true;
hnew.label = new Object();
hnew.label.text = "X axis";
plot.properties.axes.horizontal = hnew;
//Set by copying
plot.properties.axes = oldAxes;
}
}
MassPlugin ( MassPlugin aMassPlugin )
activeItem ( ): MassItem
changeDatasetFileName ( String aFileName, MassItem aMassItem ): Boolean
-
-
elementalComposition ( MassItem aMassItem, [Number aPlotIndex], Number aMZValue ): Boolean
-
-
function print_Results( res )
{
print("==== Elemental Composition Results ====");
for(var i=0; i<res.length; i++) {
var cur = res[i];
print("Result " + (i+1) + ":");
print(" formula: " + cur.formula);
print(" calc. mass: " + cur.mass);
print(" double bond equiv: " + cur.dbe);
print(" abs. error: " + cur.absErr);
print(" error (mDa): " + cur.mDaErr);
print(" error (ppm): " + cur.ppmErr);
print(" fitness: " + cur.fitness);
print("");
}
}
function test_MassElementalComposition()
{
// 1st open your mol/sdf files containing the molecules to match
var msItem = mass.activeItem();
if( msItem != undefined ) {
var selPlot = 0;
var mzValue = 0;
// Selects the plot and the m/z value
print("Selected item has: " + msItem.plotsCount + "plots.");
for(i=0; i<msItem.plotsCount; ++i) {
var plot = msItem.plot(i);
// Selects the first mass spectrum
if( plot.type == MassItem.DataTypes.Spectrum ) {
selPlot = i;
// Selects the highest peak
var plotPeaks = msItem.plot(selPlot).peaks;
if(plotPeaks.length > 0) {
var max = 0;
for(j=1; j<plotPeaks.length; ++j) {
if( plotPeaks[j].center.y > plotPeaks[max].center.y )
max = j;
}
mzValue = plotPeaks[max].center.x;
}
break;
}
}
print("Selected plot: " + selPlot + " Selected m/z: " + mzValue);
var ok = mass.elementalComposition(msItem, selPlot, mzValue);
if( ok )
print_Results(msItem.elementalComp.results);
}
}
exportChromatograms ( MassItem aMassItem, [Number aPlotIndex] ): Array
-
fetchFullDataset ( MassItem aMassItem )
See also: releaseFullDataset
loadParametersCustomization ( String aFileName, [String aFileFormat] ): Boolean
moleculeMatch ( MassItem aMassItem ): Boolean
function print_MolMatchResults( res )
{
print("=== Molecular Match Results ===");
for(var i=0; i < res.length; i++) {
var cur = res[i];
print("Result " + (i+1) + ":");
print(" molID: " + cur.moleculeId);
var mol = new Molecule( mainWindow.activeDocument.getMolTableItem(cur.moleculeId) );
print(" molFormula: " + mol.molecularFormula());
print(" molWeight: " + mol.molecularWeight());
print(" matched: " + cur.matched);
if( cur.matched ) {
print(" score: " + cur.score);
print(" similarity: " + cur.similarity);
print(" purity: " + cur.purity);
print(" RT: " + cur.retTime);
print(" scan: " + cur.scan);
}
print("");
}
}
function test_MassMolMatch()
{
// 1st open your mol/sdf files containing the molecules to match
var msItem = mass.activeItem();
if( msItem != undefined ) {
var ok = mass.moleculeMatch(msItem);
if( ok )
print_MolMatchResults(msItem.molMatch.results);
}
}
moleculeMatch ( MassItem aMassItem, Array aFormula ): Boolean
-
predict ( String aFormula, String aAdduct, String aLoss, Number aResolution, String aResolutionUnits ): MassItem
-
-
-
-
-
Valid values: {"Dalton", "Ppm"}
function predict_example()
{
var curPage = mainWindow.activeDocument.curPage();
var predItem = mass.predict("C22H34N4O3","H+","",2.0,"Ppm");
if(predItem) {
curPage.addItem(predItem);
curPage.update();
}
}
releaseFullDataset ( MassItem aMassItem )
See also: fetchFullDataset
count: Number [read-only]
hasDAD: Boolean [read-only]
getItem ( Number aIndex ): MassTraceInfo
-
exclusionRegions: MSChromPeakDetectionExclusionRegs
minAreaThreshold: Number
widPeaks: Bool
majorPeakMinAreaRatio: Number
peaks: MassVerifyPeakDetectionSettings
rtTolerance: Number
traces: MassVerifyTraceSettings
keywordsCLND: Array
keywordsELSD: Array
keywordsUV: Array
useCLND: Boolean
useELSD: Boolean
useUV: Boolean
Buttons: Number = {Abort, Apply, Cancel, Close, Discard, Help, Ignore, No, NoButton, NoToAll, Ok, Open, Reset, RestoreDefaults, Retry, Save, SaveAll, Yes, YesToAll}
MessageBox.critical ( String aText, Buttons aButton1, Buttons aButton2, Buttons aButton3, String aTitle ): Buttons
MessageBox.information ( String aText, Buttons aButton1, Buttons aButton2, Buttons aButton3, String aTitle ): Buttons
MessageBox.question ( String aText, Buttons aButton1, Buttons aButton2, Buttons aButton3, String aTitle ): Buttons
MessageBox.warning ( String aText, Buttons aButton1, Buttons aButton2, Buttons aButton3, String aTitle ): Buttons
aliases: Array
atomCount: Number [read-only]
bondCount: Number [read-only]
description: String
label: String
moleculeId: String [read-only]
molName: String
addExplicitHydrogens ( )
See also: removeExplicitHydrogens
aromaticAtoms ( ): Array
See also: detectAromaticAtoms, isAromaticAtom
atom ( Number aIndex ): Atom
-
atoms ( ): Array
averageMass ( ): Number
bond ( Number aIndex ): Bond
bonds ( ): Array
calcPartialCharges ( ): Array
codeAtomACMC ( Number aIndex ): Array
detectAromaticAtoms ( )
See also: aromaticAtoms, isAromaticAtom
detectCyclicBonds ( )
See also: isCyclicAtom
diastereotopicDistanceList ( ): Array
distanceBetween ( Number atomFrom, Number atomTo ): Number
getConformers ( ): Array
getMolfile ( ): String
getParam ( String aParamName ): Variant
-
See also: paramNames
getSDFData ( String aSDFTagName ): Variant
-
See also: sdfNames
graphicProperties ( )
isAromaticAtom ( Number aIndex ): Boolean
See also: aromaticAtoms, detectAromaticAtoms
isCyclicAtom ( Number aIndex ): Boolean
See also: detectCyclicBonds
molecularFormula ( ): String
monoisotopicMass ( ): Number
neutralizeMolecule ( ): Boolean
nmrAssignments ( )
See also: AtomNMRAssignmentData
nmrPrediction ( String aNucleus, Boolean aGrouped )
See also: AtomNMRPredictionData
normalizeExplicitHydrogensNumbering ( )
See also: normalizeNumbering
normalizeNumbering ( )
See also: normalizeExplicitHydrogensNumbering
paramNames ( ): Array
See also: getParam
removeExplicitHydrogens ( )
See also: addExplicitHydrogens
sdfNames ( ): Array
See also: getSDFData
setGraphicProperties ( Object aProperties )
setNMRAssignments ( Array aAtomNMRAssignmentDataArray )
-
See also: AtomNMRAssignmentData
setNMRPrediction ( String aNucleus, Array aPredictionObjectArray, Boolean aFillImplicitH )
-
-
See also: AtomNMRPredictionData
symmetricalAtoms ( Number aIndex ): Array
See also: detectAromaticAtoms
toString ( ): String
MoleculePlugin ( MoleculePlugin aMoleculePlugin )
activeMolecule ( ): Molecule
containsMolecule ( PageItem aMolecule1, PageItem aMolecule2 ): Boolean
create3DConformersList ( String aMolDataId, Boolean aGMMXFlag ): Boolean
-
-
importConformers ( String aFileName, String aMolDataId ): Number
-
-
importMolfile ( String aMolfileString ): String
-
importSMILES ( String aSMILESString ): String
-
parseMolecularFormula ( String aFormula ): Object
var parsed = molecule.parseMolecularFormula("C2H5OH")
print(parsed.valid) // => true
print(parsed.normalized) // => C2H6O
print(parsed.averageMass) // => 46.068439999999995
print(parsed.monoisotopicMass) // => 46.041864999999994
print(parsed.atoms["C"]) // => 2
print(parsed.atoms["H"]) // => 6
print(parsed.atoms["O"]) // => 1
print(parsed.atoms["N"]) // => undefined
sameAssignmentsData ( PageItem aMolecule1, PageItem aMolecule2 ): Boolean
after: Number
afterEnabled: Boolean
units: String
Valid values: {"Percentage", "Time"}
upTo: Number
upToEnabled: Boolean
exclusionRegions: MSChromPeakDetectionExclusionRegs
minAreaThreshold: Number
sensitivity: Number
shoulderSensitivity: Number
smoothWindowSize: Number
widePeaks: Boolean
calculationParams: Object [read-only]
category: String
centroid: Number [read-only]
color: String
delta: Number [read-only]
effPeaks: Number [read-only]
fullCategory: String [read-only]
kurtosis: Number [read-only]
name: String
nH: Number
peaks: Array [read-only]
See also: Peak.id
rangeMax: Number [read-only]
rangeMin: Number [read-only]
rmsWidth: Number [read-only]
skewness: Number [read-only]
uuid: String [read-only]
Multiplet ( Multiplet aMultiplet )
Multiplet ( SpectrumRegion aSpectrumRegion, String aCategory )
Multiplet ( SpectrumRegion aSpectrumRegion, NMRSpectrum aSpectrum )
Multiplet ( Array aPeakIds, NMRSpectrum aSpectrum )
-
clearPeakFlag ( String aPeakUuid, Multiplet.PeakFlags aPeakFlag )
-
-
integralValue ( Number aNormFactor )
jList ( Boolean aReduced ): JList
peakFlags ( String aPeakUuid )
-
removePeak ( String aPeakUuid )
-
setJList ( JList aJList )
setPeakFlag ( String aPeakUuid, Multiplet.PeakFlags aPeakFlag )
-
-
toString ( ): String
Multiplets ( )
Multiplets ( Multiplets aMultipletList )
append ( Multiplet aMultiplet )
at ( Number aIndex ): Multiplet
clear ( )
findMultiplet ( String aId ): Multiplet
normalizeWithNuclideCount ( NMRSpectrum aSpc )
removeAt ( Number aIndex )
sort ( Boolean bAscending )
toString ( ): String
MultipletTable ( MultipletTable aMultipletTable )
spectrum ( ): NMRSpectrum
toString ( ): String
See also: NetworkReply, NetworkRequest
NetworkAccessibility: Number = {Accessible, NotAccessible, UnknownAccessibility}
Operation: Number = {CustomOperation, DeleteOperation, GetOperation, HeadOperation, PostOperation, PutOperation, UnknownOperation}
networkAccesible:
Returns one of the NetworkAccessibility values
NetworkAccessManager ( )
get ( NetworkRequest request ): NetworkReply
head ( NetworkRequest request ): NetworkReply
post ( NetworkRequest request, data ): NetworkReply
-
put ( NetworkRequest request, data ): NetworkReply
-
See also: NetworkAccessManager, NetworkRequest
NetworkError: Number = {AuthenticationRequiredError, ConnectionRefusedError, ContentAccessDenied, ContentNotFoundError, ContentOperationNotPermittedError, ContentReSendError, HostNotFoundError, NoError, OperationCanceledError, ProtocolFailure, ProtocolInvalidOperationError, ProtocolUnknownError, ProxyAuthenticationRequiredError, ProxyConnectionClosedError, ProxyConnectionRefusedError, ProxyNotFoundError, ProxyTimeoutError, RemoteHostClosedError, SslHandshakeFailedError, TemporaryNetworkFailureError, TimeoutError, UnknownContentError, UnknownNetworkError, UnknownProxyError}
bytesAvailable: Number
errorString: String
isFinished: Boolean
isRunning: Boolean
manager: NetworkAccessManager
networkError: NetworkError
See also: NetworkError
operation: Operation
See also: Operation
readBufferSize: Number
request: NetworkRequest
See also: NetworkError
abort ( )
attribute ( Number aAttr ): Variant
-
close ( )
hasRawHeader ( String aHeader ): Boolean
header ( ): Variant
markForDeletion ( )
rawHeader ( String aHeader )
read ( Number aMaxLength )
readAll ( )
readLine ( Number aMaxLength )
See also: NetworkAccessManager, NetworkReply
Attribute: Number = {AuthenticationReuseAttribute, CacheLoadControlAttribute, CacheSaveControlAttribute, ConnectionEncryptedAttribute, CookieLoadControlAttribute, CookieSaveControlAttribute, CustomVerbAttribute, DoNotBufferUploadDataAttribute, HttpPipeliningAllowedAttribute, HttpPipeliningWasUsedAttribute, HttpReasonPhraseAttribute, HttpStatusCodeAttribute, RedirectionTargetAttribute, SourceIsFromCacheAttribute}
KnownHeaders: Number = {ContentDispositionHeader, ContentLengthHeader, ContentTypeHeader, CookieHeader, LastModifiedHeader, LocationHeader, SetCookieHeader}
Priority: Number = {HighPriority, LowPriority, NormalPriority}
priority: Priority
See also: Priority
url: String
attribute ( Number aAttr, Variant aDefValue ): Variant
-
hasRawHeader ( String aHeader ): Boolean
header ( ): Variant
rawHeader ( String aHeader )
rawHeaderList ( )
setAttribute ( Number aAttr, Variant aValue )
-
setHeader ( Number aHeader, Variant aValue )
-
setRawHeader ( String aHeader, String aValue )
lastError: String
spectraList: Array
NMRArithmetic ( )
add ( NMRSpectrum aFirstSpc, [Number aFirstSpcIndex], NMRSpectrum aSecondSpc, [Number aSecondSpcIndex], NMRSpectrum aResultSpc, [Number aResultSpcIndex] ): Boolean
-
-
-
-
mul ( NMRSpectrum aFirstSpc, [Number aFirstSpcIndex], NMRSpectrum aSecondSpc, [Number aSecondSpcIndex], NMRSpectrum aResultSpc, [Number aResultSpcIndex] ): Boolean
-
-
-
-
runFormula ( String aFormula, aResultId ): Boolean
-
-
scale ( Number aNumber, NMRSpectrum aSpc, [Number aSpcIndex], NMRSpectrum aResultSpc, [Number aResultSpcIndex] ): Boolean
-
-
-
sub ( NMRSpectrum aFirstSpc, [Number aFirstSpcIndex], NMRSpectrum aSecondSpc, [Number aSecondSpcIndex], NMRSpectrum aResultSpc, [Number aResultSpcIndex] ): Boolean
-
-
-
-
chemShift ( Number aAtomNumber, Number aIndex ): Object
-
-
Valid values: {0, 1, 2, 3}
chemShiftArr ( Number aAtomNumber, Number aIndex ): Object
-
Valid values: {0, 1, 2, 3}
correlatedAtoms ( Number aAtomIndex, Number aIndex, String aCorrelationType ): Array
-
Valid values: {0, 1, 2, 3}
-
correlations ( ): Array
hasAssignments ( String aElement ): Boolean
-
hasCouplings ( String aType ): Boolean
-
Valid values: {"J", "NOE", "RDC"}
jConts ( Number aAtomNumber, Number aIndex ): Object
-
-
Valid values: {0, 1, 2, 3}
For these Js in the Assignments Table: "-1.00(5'),-1.00(5''),6.20(6),7.90(7)" (atoms 5CH2, 6H, 7CH2 (equivalents)),
we will have:
{ atom:{ index:'5', h:'a'}, value:'-1'},
{ atom:{ index:'5', h:'b'}, value:'-1'},
{ atom:{ index:'6'}, value:'6.2'},
{ atom:{ index:'7', h:'a'}, value:'7.9'},
{ atom:{ index:'7', h:'b'}, value:'7.9'}
multipletAssignment ( String aMultipletId ): String
-
notEqHs ( Number aAtomIndex ): Array
-
peakAssignment ( String aPeakId, String aNucleus ): String
-
-
realAssignedExp ( String aType ): String
-
removeChemShift ( Number aAtomNumber, Number aIndex )
-
Valid values: {0, 1, 2, 3}
setChemShift ( Number aAtomNumber, Number aIndex, Number aFrom, Number aTo )
-
Valid values: {0, 1, 2, 3}
-
-
centroidTolerance: Number
useCentroidMetric: Boolean
NMRPeaksPatternFinder ( )
createReference ( NMRSpectrum aNMRSpectrum, [Number aSpectrumIndex], Array aPeakIds ): Object
-
-
See also: NMRSpectrum.curSpecIndex, NMRSpectrum.specCount
-
See also: Peak.id
createSpinSimReference ( Molecule aMolItem, Number aAtomIndex, [Number aHIndex], NMRSpectrum aNMRSpectrum, [Number aResolution] ): Object
-
-
-
-
-
findReference ( Object aReference, NMRSpectrum aNMRSpectrum, [Number aSpectrumIndex], Array aPeakIds ): Object
-
-
-
See also: NMRSpectrum.curSpecIndex, NMRSpectrum.specCount
-
See also: Peak.id
activeSpectrum ( ): NMRSpectrum
autoAssign ( NMRSpectrum aNMRItem, PageItem aMolItem ): Boolean
-
-
beginFidModification ( NMRSpectrum aSpectrum )
beginModification ( NMRSpectrum aSpectrum )
calculate1DSpectraDistance ( NMRSpectrum aSpectrumA, NMRSpectrum aSpectrumB ): Number
-
-
calculate1DSpectraDistance ( NMRSpectrum aSpectrumA, Number aIndexA, NMRSpectrum aSpectrumB, Number aIndexB ): Number
-
-
-
-
createArrayedItem ( Array aSpectra, [Boolean aStacked] ): NMRSpectrum
-
-
endFidModification ( NMRSpectrum aSpectrum )
endModification ( NMRSpectrum aSpectrum )
extractSpectrumFromArrayedItem ( NMRSpectrum aSpectrum, [Number aIndex] ): NMRSpectrum
-
-
isValid ( ): Boolean
loadParametersCustomization ( String aFileName, [String aFileFormat] ): Boolean
multipletTable ( ): MultipletTable
numberOfNuclidesTest ( Array aIntegrals, Number aCountFrom, [Number aCountTo] ): NNTestSolution
-
-
-
function nnTest()
{
var integrals = [ 0.5, 0.95, 0.42, 0.1];
var nnOut = nmr.numberOfNuclidesTest(integrals, 1, 8);
if( nnOut ) {
print("Integrals: " + integrals);
print("Total Nuclides: " + nnOut.totalNuclides);
print("Nuclides Count: " + nnOut.nuclidesCount);
print("Likelyhood: " + nnOut.likelyhood);
print("Likelyhoods: " + nnOut.likelyhoods);
print("Normalization Factor: " + nnOut.normFactor);
print("Most Offending: " + integrals[nnOut.offendingIdx] + "[" + nnOut.offendingIdx + "]");
print("LikelyhoodEx: " + nnOut.likelyhoodEx);
}
var nnOut = nmr.numberOfNuclidesTest(integrals, 4);
if( nnOut ) {
print("Integrals: " + integrals);
print("Total Nuclides: " + nnOut.totalNuclides);
print("Nuclides Count: " + nnOut.nuclidesCount);
print("Likelyhood: " + nnOut.likelyhood);
print("Likelyhoods: " + nnOut.likelyhoods);
print("Normalization Factor: " + nnOut.normFactor);
print("Most Offending: " + integrals[nnOut.offendingIdx] + "[" + nnOut.offendingIdx + "]");
print("LikelyhoodEx: " + nnOut.likelyhoodEx);
}
}
peakTable ( ): PeakTable
process ( String aProcFile )
-
See also: NMRProcessing, NMRSpectrum.proc, NMRSpectrum.process
processSpectrum ( NMRSpectrum aSpectrum, String aProcFile )
See also: NMRProcessing, NMRSpectrum.proc, NMRSpectrum.process
syntheticAssignmentsSpectrum ( String aXML ): Object
-
syntheticPeaksSpectrum ( NMRSpectrum aNMRItem, Number aIncPeakFlags, Number aExcPeakFlags, Number aMode, [Number aModeParm1], [Number aModeParm2] ): NMRSpectrum
-
-
See also: Peak.FlagsInc
-
See also: Peak.FlagsExc
-
See also: NMRPlugin.SyntheticSpectrumMode
-
-
syntheticPeaksSpectrum ( NMRSpectrum aNMRItem, Array aPeakIdsArray, Number aMode, [Number aModeParm1], [Number aModeParm2] ): NMRSpectrum
-
-
See also: Peak.id
-
See also: NMRPlugin.SyntheticSpectrumMode
-
-
toString ( ): String
NMRPredictorPlugin ( NMRPredictorPlugin aNMRPredictorPlugin )
availablePredictors ( )
predict ( Molecule aMolecule, String aNucleus ): String
var actWindow = mainWindow.activeDocument,
itCount = actWindow.itemCount("Molecule"),
i = 0,
item,
specId;
print("Molecule Count: "+itCount);
for (i=0; i < itCount; ++i) {
item = actWindow.item(i, "Molecule");
print(i+": "+item.uuid);
spcId = Application.NMRPredictor.predict(item, "1H");
print("Predicted Id: "+spcId);
}
predictHSQC ( Molecule aMolecule ): String
var mol = new Molecule(Application.molecule.activeMolecule()),
nmrItem;
nmrItem = Application.NMRPredictor.predictHSQC(mol);
print(nmrItem);
predictMolecule ( File aFile, String aNucleus, Array aPredArray, String aSolvent )
-
samePredictionsData ( PageItem aMolecule1, PageItem aMolecule2 ): Boolean
spinSimulationDataText ( Molecule aMolecule, String aNucleus, Number aPrecision ): String
updateUserDB ( String aNucleus, String aSDFilePath, String aDBLetter, String aSolvent ): String
function updateUserDB()
{
if(Application.NMRPredictor == undefined)
throw "Predictor Plugin not loaded";
Application.NMRPredictor.silentMode = true
Application.NMRPredictor.updateUserDB("1H","all1h.sdf","P", "CDCl3"); //nucleus, sdfile path, dbletter, solvent
Application.NMRPredictor.silentMode = false
}
isValid: Boolean
stopProc: Number
See also: NMRProcessing.ProcStop
NMRProcessing ( )
getParameter ( String aArgumentString ): Variant
open ( aFilename ): Boolean
-
save ( aFilename ): Boolean
-
setApplyNothing ( )
setParameter ( String aArgumentString, Variant aValue ): Variant
-
toString ( ): String
documentId: Document
fitModels: Array
See also: GraphFitModel
graphId: Graph
responseFactor: GraphResponseFactor
See also: GraphResponseFactor
specId: NMRSpectrum
stackedView: Boolean
yModels: Array
See also: GraphYModel
finish ( )
fitModelsFromXML ( String aXML ): Boolean
fromXML ( String aXML ): Boolean
graphItem ( ): Graph
init ( )
nmrItem ( ): NMRSpectrum
onNewData ( NMRSpectrum aSpc ): Boolean
-
setFitModels ( Array aFitModelsArray ): Boolean
yModelsFromXML ( String aXML ): Boolean
arrayedData: Array
blindRegions: Array of BlindRegion
See also: BlindRegion
className: String
comment: String
curSpecIndex: Number
dimCount: Number [read-only]
experimentType: String
Valid values: {"1D", "1D-APT", "1D-DEPT-135", "1D-DEPT-45", "1D-DEPT-90", "1D-INEPT", "1D-JMOD", "1D-NOESY", "1D-ROESY", "1D-TOCSY", "2D-COSY", "2D-DOSY", "2D-DQF-COSY", "2D-H2BC", "2D-HETCOR", "2D-HMBC", "2D-HMQC", "2D-HMQC-MB", "2D-HSQC", "2D-HSQC-EDITED", "2D-HSQC-TOCSY", "2D-HSQC-TOCSY-EDITED", "2D-INADEQUATE", "2D-JRES", "2D-NOESY", "2D-ROESY", "2D-TOCSY"}
formattedTitle: String [read-only]
See also: NMRSpectrum.title
isReal: Boolean [read-only]
originalFormat: String [read-only]
Valid values: {"ASCII", "Bruker Aspect", "Bruker WIN-NMR", "Bruker XWIN-NMR", "Elscint", "GE/Nicolet", "JCAMP-DX", "JEOL Alice", "JEOL Delta", "JEOL EX/GX", "JEOL Lambda", "Lumisys", "Magritek Prospa", "MestReC", "MNova", "NMRPipe", "Nuts Type 1", "Nuts Type 2", "Nuts Type 3", "Old Gemini", "Predictor", "Siemens", "Spinsight", "SWANMR", "Tecmag", "Unknown", "Varian", "VHelper"}
proc: NMRProcessing
realMax: Number [read-only]
realMin: Number [read-only]
solvent: String
specCount: Number [read-only]
spectra: Array
temperature: Number [read-only]
threshold: Number
title: String [read-only]
See also: NMRSpectrum.formattedTitle
NMRSpectrum ( NMRSpectrum aSpectrum )
NMRSpectrum ( String aXML )
-
NMRSpectrum ( Object aArgsObject )
var spec2D = new NMRSpectrum({
1: {nucleus: myf1nuc, frequency: myf1mhz, from_ppm: myf1ppm1, to_ppm: myf1ppm2, size: myf1Size},
2: {nucleus: myf2nuc, frequency: myf2mhz, from_ppm: myf2ppm1, to_ppm: myf2ppm2, size: myf2Size},
filename: myFilename,
origin: 'My DB',
title: 'My Title'
}
);
var spec1D = new NMRSpectrum({
1: {nucleus: myNucleus, frequency: myMhz, from_ppm: myppm1, to_ppm: myppm2, size: mySize},
filename: myFilename,
origin: 'My DB',
title: 'My Title'
}
);
NMRSpectrum ( Object aPredictArgs )
-
var spec1D = new NMRSpectrum({args: [mySpecInfo, myPeaks], metadata: {title: 'My Title', origin: 'My DB', filename: myFilename}});
var spec2D = new NMRSpectrum({args: [f2SpecInfo, f2Peaks, f1SpecInfo, f1Peaks],
metadata: {title: 'My Title', origin: 'My DB', filename: myFilename}});
NMRSpectrum ( NMRPredictorParams aSpecInfo, Array aPeakList, Boolean aAddPeaks = false )
-
-
NMRSpectrum ( NMRPredictorParams aSpecInfo F2, Array aPeakList F2, NMRPredictorParams aSpecInfo F1, Array aPeakList F1, Boolean aAddPeaks = false )
-
-
-
align ( String aRefItemId, Number aRefSpc, Array aIndexArray ): Boolean
-
-
-
alignRegions ( Object aObject ): Boolean
-
appendSpectrum ( NMRSpectrum aNMRSpectrum )
-
assignPeakToMultiplet ( String aMultipletUuid, String aPeakID )
-
See also: Mutiplet.uuid
-
See also: Peak.id
autoDetectNoiseRegions ( ): Array
autoScaleArrayed ( )
calcPeaksPurity ( )
checkPeakVisibility ( Peaks aPeak ): Boolean
corrPearson ( NMRSpectrum aSpectrum ): Number
count ( Number aDim ): Number
count ( ): Number
deselectSpectra ( Array aSpecIndexes )
-
extractInnerTrace ( String aOrientation, String Number aTrace ): NMRSpectrum
-
Valid values: {"horizontal", "vertical"}
-
See also: getInnerTracePoints
fidCount ( ): Number
fidCount ( Number aDim ): Number
fidImag ( Number | String | Object aIndex ): Number | Array
See also: fidReal, fidSetImag
fidImag ( Number | String | Object aRow, Number | String | Object aCol ): Number | Array
See also: fidReal, fidSetImag
fidReal ( Number | String | Object aIndex ): Number | Array
See also: fidImag, fidSetReal
fidReal ( Number | String | Object aRow, Number | String | Object aCol ): Number | Array
See also: fidImag, fidSetReal
fidSetImag ( Number | String | Object aIndex, Number | Array aValue ): Boolean
See also: fidImag, fidSetReal
fidSetImag ( Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue ): Boolean
See also: fidImag, fidSetReal
fidSetReal ( Number | String | Object aIndex, Number | Array aValue ): Boolean
See also: fidReal, fidSetImag
fidSetReal ( Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue ): Boolean
See also: fidReal, fidSetImag
fit ( FitRegion aFitRegion, Boolean aShowDialog ): FitRegion
fitRegions ( ): Array
fitToHeight ( )
fitToHighestCompound ( )
frequency ( )
frequency ( Number aDim )
getFullScaleLimits ( ): Object
getNMRAssignedMolecules ( ): Array
getNusSchema ( ): Array
getParam ( String aParamName ): Variant
-
See also: paramNames, setParam
getProperty ( String aParam ): Variant
See also: setProperty
getScaleLimits ( ): Object
function scaleLimitsTest()
{
var spc = nmr.activeSpectrum();
var sLimits = spc.getScaleLimits();
var resultString = new String("%1 Axis: From %2, To %3");
print(resultString.replace("%1", "Horizontal").replace("%2",sLimits.fromX).replace("%3",sLimits.toX));
print(resultString.replace("%1", "Vertical").replace("%2",sLimits.fromY).replace("%3",sLimits.toY));
}
gsdMultiplets ( ): GSDMultiplets
gsdPeaks ( ): GSDPeaks
hideSpectra ( Array aSpecIndexes )
-
horzZoom ( Number aFrom, Number aTo, [String hUnits] )
hz ( ): Number
hz ( Number aDim ): Number
imag ( Number | String | Object aIndex ): Number | Array
imag ( Number | String | Object aRow, Number | String | Object aCol ): Number | Array
integrals ( ): Integrals
isFID ( Number aDim ): Boolean
isInBlindHorzRegion ( Number aXPos ): Boolean
-
isInBlindVertRegion ( Number aYPos ): Boolean
-
isInCutHorzRegion ( Number aXPos ): Boolean
-
isInCutVertRegion ( Number aYPos ): Boolean
-
isInHiddenHorzRanges ( Number aXPos ): Boolean
-
isInHiddenVertRanges ( Number aYPos ): Boolean
-
isReadOnlyParam ( String aParam ): Boolean
isSpectrumSelected ( Number aSpecIndex ): Boolean
-
isSpectrumVisible ( Number aSpecIndex ): Boolean
-
isValid ( ): Boolean
isValid ( Number aDim ): Boolean
multiplets ( ): Multiplets
noiseFreeRegions ( minimumRegSizePPM ): Array
nucleus ( Boolean aHtml ): String
nucleus ( Number aDim, Boolean aHtml ): String
paramNames ( ): Array
function test()
{
var spc = nmr.activeSpectrum();
var paramNames = spc.paramNames();
print(" " + paramNames.length + " parameters.");
for( var i = 0; i < paramNames.length; i++ )
{
print(paramNames[i] + ": " + spc.getParam(paramNames[i]));
}
}
peaks ( ): Peaks
process ( [NMRProcessing aProc] ): Boolean
See also: proc, processCurSpec
processCurSpec ( [NMRProcessing aProc] ): Boolean
See also: curSpecIndex, proc, process
proposePhase1D ( ): Object
real ( Number | String | Object aIndex ): Number | Array
real(400); - returns real value of the point with index 400
real({from:0, to:512}); - returns real values for points with indexes from 0 to 512.
real("all") - returns real values of all points in the spectrum.
real ( Number | String | Object aRow, Number | String | Object aCol ): Number | Array
real(0,"all") - extracts row #0 from 2D spectrum
real({from:0, to:10}, {from:0,to:10}) - extracts square matrix 10x10 from 2D spectrum, starting at point (0,0)
recalculateIntegrals ( Object aParameters, [String aIntgUuid] )
-
See also: Integral.calculationParams
-
See also: Integral.id
recalculateMultipletIntegrals ( Object aParameters, [String aMultUuid] )
-
See also: Multiplet.calculationParams
-
See also: Mutiplet.uuid
reference ( Number aDim, Number aOldShift, Number aNewShift, Boolean aAutoTune, Number aAutoTuneTolerance )
-
-
-
-
-
removeSpectrum ( Number aSpecIndex ): Boolean
-
scaleToPage ( )
function annotatePeak()
{
var spc = nmr.activeSpectrum();
var peakList = spc.peaks();
print(peakList.count);
var peak = peakList.at(0);
print(peak);
var peakCoordinates = new Object();
peakCoordinates.x = peak.delta();
peakCoordinates.y = peak.intensity;
var transCoords = spc.scaleToPage(peakCoordinates);
if (!transCoords)
return;
var arrowEndCoords = {};
arrowEndCoords.x = transCoords.x-10;
arrowEndCoords.y = transCoords.y-10;
var arrowItem = draw.arrow( transCoords.x, transCoords.y,
arrowEndCoords.x, arrowEndCoords.y, true, false);
var txt = "<p><b>Peak</b> (delta: %1, intensity: %2)</p>");
var textItem = draw.text(txt.replace("%1", peak.delta()).replace("%2", peak.intensity), true);
textItem.left = arrowEndCoords.x - textItem.width / 2.0;
textItem.top = arrowEndCoords.y - textItem.height;
spc.update();
mainWindow.activeDocument.update();
}
scaleWidth ( Number aDim ): Number
scaleWidth ( ): Number
selectSpectra ( Array aSpecIndexes )
-
setFitRegions ( Array aArrayOfFitRegions )
-
setHiddenRanges ( Array of SpectrumRegion aHorzRanges, Array of SpectrumRegion aVertRanges )
-
-
setImag ( Number | Array aIndex, Number | String | Object aValue ): Boolean
setImag ( Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue ): Boolean
setIntegrals ( Integrals aIntegralsList )
setMultiplets ( Multiplets aMultipletList )
setNusSchema ( Array aSchema )
setParam ( String aParamName, Variant aValue )
-
See also: getParam, paramNames
setPeaks ( Peaks aPeakList )
setProperty ( String aParam, Variant aValue )
See also: getProperty
setReal ( Number | String | Object aIndex, Number | Array aValue ): Boolean
setReal(5, 0.5)
setReal({from:0, to:3}, [0, 1, 2, 3])
setReal ( Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue ): Boolean
setReal(0, 5, 0.5)
setReal(0, {from:0, to:2}, [0, 1, 2])
setReal({from:0, to:1}, {from:0, to:1}, [[0, 1], [2, 3]])
setTrace ( NMRSpectrum aSpc, Boolean aHorz )
-
-
showSpectra ( Array aSpecIndexes )
-
solventName ( Boolean aExtended )
-
toString ( ): String
unitsToUnits ( String aFromUnits, String aToUnits, Number aValue, Number aDim ): Number
Valid values: {"Hz", "ppm", "pt", "sec"}
Valid values: {"Hz", "ppm", "pt", "sec"}
function unitsToUnitsTest()
{
var spc = nmr.activeSpectrum(),
hz = spc.unitsToUnits("ppm", "hz", 4.5, 1);
print("%1 ppm is %2 Hz".replace("%1", 4.5).replace("%2", hz));
}
updateMultiplet ( [String aMultipletUuid] )
-
vertZoom ( Number aFrom, Number aTo, [String vUnits] )
zero ( Number aDim ): Number
zero ( ): Number
zoom ( Number aHFrom, Number aHTo, Number aVFrom, Number aVTo, [String hUnits], [String vUnits] )
zoom ( Object aZoomObject )
-
badWater: Boolean
expectedSamplePurity: String
Valid values: {"High", "Low", "Normal"}
integralsValueError: Number
known1HImpurities: Array
Valid values: {Acetone, Acetone-d5, CDCl3, DMSO, DMSO-d6, EtOH, IPA, MeOH, MeOH-d4}
predErrorFactor13C: Number
predErrorFactor1H: Number
likelyhood: Number [read-only]
likelyhoodEx: Number [read-only]
likelyhoods: Array [read-only]
normFactor: Number [read-only]
nuclidesCount: Array [read-only]
offendingIdx: Number [read-only]
totalNuclides: Number [read-only]
bottom: Number [read-only]
height: Number [read-only]
items: Array [read-only]
left: Number [read-only]
margins: Object [read-only]
function pageMarginsTest()
{
var page = mainWindow.activeDocument.curPage();
var margs = page.margins;
print(margs.top);
print(margs.bottom);
print(margs.left);
print(margs.right);
}
notes: String
right: Number [read-only]
title: String
top: Number [read-only]
uuid: String [read-only]
width: Number [read-only]
addItem ( PageItem aPageItem )
-
cloneItems ( Array aPageItems ): Array
-
deleteItems ( PageItem | Array aPageItems )
-
Page.deleteItems ( PageItem | Array aPageItems )
-
guiCoordToScriptCoord ( Number aGuiX, Number aGuiY, Number aGuiWidth, Number aGuiHeight ): Object
function testCoordTransform()
{
page = mainWindow.activeDocument.curPage();
var spec = nmr.activeSpectrum();
print("Spec script coord");
print(spec.left);
print(spec.top);
print(spec.width);
print(spec.height);
print("Spec gui coord");
var specGUI=page.scriptCoordToGuiCoord(spec.left, spec.top,
spec.width, spec.height);
print(specGUI.x);
print(specGUI.y);
print(specGUI.width);
print(specGUI.height);
print("Re Spec scriptcoord");
var specScript = page.guiCoordToScriptCoord(specGUI.x, specGUI.y,
specGUI.width, specGUI.height);
print( specScript.left );
print( specScript.top );
print( specScript.width );
print( specScript.height );
}
item ( Number aIndex, String aType )
-
-
item ( Number aIndex )
itemCount ( String aType ): Number
-
Valid values: {"Arrow", "Ellipse", "Graph", "Image", "Layout Template", "Mass Spectrum", "Molecule", "NMR Spectrum", "OLE Object", "Polygon", "Rectangle", "Text"}
itemCount ( ): Number
itemsByName ( String aType1, ..., String aTypeN ): Array
var specItems = itemsByName('NMR Spectrum', 'Mass Spectrum');
scriptCoordToGuiCoord ( Number aScriptLeft, Number aScriptTop, Number aScriptWidth, Number aScriptHeight ): Object
toPixmap ( Number aDpi ): Pixmap
toString ( ): String
update ( )
angle: Number
bottom: Number
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
dataId: String [read-only]
height: Number
left: Number
lineColor: String
Valid values: {"#RRGGBB", "Color Keywords"}
lineStyle: Number
Valid values: {0 - No line, 1 - Solid line, 2 - Dash line, 3 - Dot line, 4 - Dash dot line, 5 - Dash dot dot line}
linkId: String [read-only]
name: String [read-only]
Valid values: {"Arrow", "Ellipse", "Graph", "Image", "Layout Template", "Mass Spectrum", "Molecule", "NMR Spectrum", "OLE Object", "Polygon", "Rectangle", "Text"}
opacity: Number
originalFileName: String [read-only]
page: Page [read-only]
right: Number
subtype: String
top: Number
type: String
uuid: String [read-only]
width: Number
addChildItems ( PageItem | Array aPageItems )
-
clearMetaData ( Boolean aHidded = false )
See also: getMetaData, hasMetaData, removeMetaData, setMetaData
getBrush ( ): Object
See also: setBrush
getLinkedItems ( String aRole ): Array
-
Valid values: {"assignments", "predictions"}
See also: unlinkAllItems, unlinkItems, unlinkItems
getMetaData ( String aName, Boolean aHidded = false ): Object
See also: clearMetaData, hasMetaData, removeMetaData, setMetaData
getPen ( ): Object
See also: setPen
hasMetaData ( String aName, Boolean aHidded = false ): Boolean
See also: clearMetaData, getMetaData, removeMetaData, setMetaData
linkItems ( String aRole, PageItem | Array aPageItems )
-
Valid values: {"Assignments", "DataAnalysis", "Predictions11B", "Predictions13C", "Predictions15N", "Predictions17O", "Predictions19F", "Predictions1H", "Predictions29Si", "Predictions31P", "PredictionsCompare", "PredictionsHighlight", "SpinSimulation", "Verification"}
-
See also: getLinkedItems, unlinkAllItems, unlinkItems
remove ( )
removeMetaData ( String aName, Boolean aHidded = false )
See also: clearMetaData, getMetaData, hasMetaData, setMetaData
setBrush ( Object aBrush )
-
Valid values for 'color': {#RRGGBB, Color Keywords}
Valid values for 'style': {00 - No brush, 01 - Uniform color, 02 - Extremely dense, 03 - Very dense, 04 - Somewhat dense, 05 - Half dense, 06 - Somewhat sparse, 07 - Very sparse, 08 - Extremely sparse, 09 - Horizontal lines, 10 - Vertical lines, 11 - Crossing horizontal and vertical lines, 12 - Backward diagonal lines, 13 - Forward diagonal lines, 14 - Crossing diagonal lines}
See also: getBrush
setMetaData ( String aName, Object aValue, Boolean aHidded = false )
See also: clearMetaData, getMetaData, hasMetaData, removeMetaData
setPen ( Object aPen )
-
Valid values for 'color': {#RRGGBB, Color Keywords}
Valid values for 'style': {0 - No line, 1 - Solid line, 2 - Dash line, 3 - Dot line, 4 - Dash dot line, 5 - Dash dot dot line}
See also: getPen
toPixmap ( Number aDpi ): Pixmap
toString ( ): String
translate ( Number aXShift, Number aYShift )
unlinkAllItems ( String aRole )
-
Valid values: {"assignments", "predictions", "predictions11B", "predictions13C", "predictions15N", "predictions17O", "predictions19F", "predictions1H", "predictions29Si", "predictions31P"}
See also: getLinkedItems, linkItems, unlinkItems
unlinkItems ( String aRole, PageItem | Array aPageItems )
-
Valid values: {"assignments", "predictions", "predictions11B", "predictions13C", "predictions15N", "predictions17O", "predictions19F", "predictions1H", "predictions29Si", "predictions31P"}
-
See also: getLinkedItems, linkItems, unlinkAllItems
update ( )
Flags: Number = {C13Satellite, Hidden, Labile, None, Rotational, Solvent2ary, Weak}
FlagsExc: Number = {C13Satellite, Hidden, Labile, Rotational, Weak}
FlagsInc: Number = {Artifact, Compound, Impurity, Q_Reference, S_Reference, Solvent}
Kinds: Number = {Maximum, Minimum}
Modes: Number = {AllModes, Auto, Fit, Manual, Reference}
Types: Number = {Artifact, Compound, CS_Ref, Impurity, Quantification_Ref, Solvent}
annotation: String
compoundId: String
flags: Peak.Flags
id: String [read-only]
integral: Number [read-only]
See also: Peak.integralInPts
intensity: Number [read-only]
kind: Peak.Kinds
kurtosis: Number [read-only]
mode: Peak.Modes
modeOptions: Object
type: Peak.Types
Peak ( Object aPeakDescriptor )
-
var pkDesc = {};
pkDesc.center = 8.5211; // ppm
pkDesc.width = 0.002; // ppm
pkDesc.height = 300.0;
pkDesc.phase = 0.0;
pkDesc.shapeType = "Generalized Lorentzian"
pkDesc.shapeParam = 0.5;
var peak = new Peak(pkDesc);
Peak ( Peak aPeak )
Peak ( Number aPos, Number aIntensity )
Peak ( Number aPos, NMRSpectrum aSpectrum )
Peak ( Number aPos1, Number aPos2, Number aIntensity )
Peak ( Number aPos1, Number aPos2, NMRSpectrum aSpectrum )
compoundLabel ( String aSpecSolvent ): String
-
See also: NMRSpectrum.solvent
delta ( Number aDim )
-
delta ( ): Number
integralInPts ( NMRSpectrum aSpec ): Number
-
setFlag ( Peak.Flags aFlag, Boolean aEnable )
-
-
toString ( ): String
width ( Number aDim )
-
width ( ): Number
Peaks ( )
Peaks ( Peaks aPeakList )
-
Peaks ( NMRSpectrum aSpectrum, SpectrumRegion aRegion )
append ( Peak aPeak )
at ( Number aDim ): Peak
byId ( String aPeakId ): Peak
See also: #Peak.id
clear ( Number aIndex )
indexOf ( String aPeakId ): Number
See also: Peak.id
removeAt ( Number aIndex )
sort ( Boolean bAscending )
sort ( Boolean bHAscending, Boolean bVAscending )
toString ( ): String
PhysChemPlugin ( PhysChemPlugin aPhysChemPlugin )
calculate ( Array aMolItems ): Array
-
Example:
{molId: {d2daefee-d40f-4285-93aa-5b56dd68ca2f},
properties: { { name: logP, value: -2.38621},
{ name: MolarVolume, value: 737.368},
{ name: SurfaceArea_+PSA-Donor, value: 16.1227},
{ name: SurfaceArea_-PSA-Acceptor, value: 24.16},
{ name: SurfaceArea_Neutral, value: 99.2692},
{ name: SurfaceArea_Total, value: 141.481} }
}
AspectRatioMode: Number = {IgnoreAspectRatio, KeepAspectRatio, KeepAspectRatioByExpanding}
TransformationMode: Number = {FastTransformation, SmoothTransformation}
Pixmap ( String aPath, String aFormat, Number aImageConversionFlags )
-
-
Pixmap ( aCopyPixmap )
fill ( String aColor )
load ( String aPath, String aFormat, Number aImageConversionFlags ): Boolean
loadFromData ( String aData, String aFormat, Number aImageConversionFlags ): Boolean
rotated ( Number aAngleDegrees, TransformationMode aTransform ): Pixmap
save ( String aPath, String aFormat, Number aQuality ): Boolean
-
scaled ( Number aWidth, Number aHeight, AspectRatioMode aAspectRatio, TransformationMode aTransform ): Pixmap
scaledToHeight ( Number aHeight, TransformationMode aTransform ): Pixmap
scaledToWidth ( Number aWidth, TransformationMode aTransform ): Pixmap
toByteArray ( String aFormat, Number aQuality ): ByteArray
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
font: Font
horizontal: PlotAxisProps
lineWidth: Number
margin: Number
vertical: PlotAxisProps
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
style: String
Valid values: {"circles", "crosses", "line"}
width: Number
decimals: Number
label: PlotAxisLabelProps
manualTics: Boolean
minWidth: Number
primaryTics: Number
secondaryTics: Number
visible: Boolean
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
opacity: Number
decimals: Number
value: String
Valid values: {"abundance", "area", "height", "intensity"}
visible: Boolean
baseline: Boolean
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
decimals: Number
exclusionRegions: Boolean
font: Font
secondline: PlotChromPeak2ndLineProps
threshold: Number
vertBounds: Boolean
visible: Boolean
wedges: Boolean
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
lineWidth: Number
showBaseline: Boolean
showFrame: Boolean
showHorizontal: Boolean
showOver: Boolean
showVertical: Boolean
categoryLabels: String
Valid values: {"Categories", "Numbers"}
label: PlotAxisLabelProps
minWidth: Number
visible: Boolean
color: String
Valid values: {"#RRGGBB", "Color Keywords"}
decimals: Number
font: Font
format: String
visible: Boolean
Orientation: = {Landscape, Portrait}
PaperSize: = {A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, B0, B1, B10, B2, B3, B4, B5, B5, B6, B7, B8, B9, C5E, Comm10E, Custom, Executive, Folio, Ledger, Legal, Letter, Tabloid}
PrinterMode: = {HighResolution, PrinterResolution, ScreenResolution}
Unit: = {Cicero, DevicePixel, Didot, Inch, Millimeter, Pica, Point}
Printer ( PrinterMode aMode = ScreenResolution )
begin ( String aFileName = ' ' )
-
end ( )
newPage ( )
print ( Page aPage )
print ( Document aDocument )
print ( TextDocument aTextDocument )
allErrorOutput: String
allStdOutput: String
errorCode: Number
Valid values: {Process.Crashed, Process.FailedToStart, Process.ReadError, Process.Timedout, Process.UnknownError, Process.WriteError}
exitCode: Number
exitStatus: Number
Valid values: {Process.CrashExit, Process.NormalExit}
state: Number
Valid values: {Process.NotRunning, Process.Running, Process.Starting}
workingDirectory: String
Process ( )
Process.execute ( String aProgram, Array aArguments ): Number
start ( String aProgram, Array aArguments )
Process.startDetached ( String aProgram, Array aArguments ): Boolean
Process.systemEnvironment ( ): Array
Process.systemEnvironmentObject ( ): Object
waitForFinished ( Number aMSec ): Boolean
waitForStarted ( Number aMSec ): Boolean
labelText: String
maximum: Number
minimum: Number
minimumDuration: Number
showCancelButton: Boolean
value: Number
wasCanceled: Boolean
checkable: Boolean
checked: Boolean
text: String
Rectangle ( Rectangle aRectItem )
importFile ( String|Array aPath, String aFileFilter, Document aDocument = undefined ): Boolean
metaData ( String aFileName, String aFormat = undefined, Array aExtraData ): Object
-
-
-
open ( String aFileName, String aFormat = undefined ): Boolean
-
-
open ( Array aFileNameList )
save ( String aFileName, String aFormat )
Valid values: {"bmp", "eps", "jcamp", "jpg", "mncs", "mnova", "mrc", "pdf", "png", "ppm", "ps", "svg", "tiff", "txt", "xbm", "xpm"}
Settings ( String aPrefix = "Scripts/Settings/" )
Settings ( String aOrganization, String aApplicationName )
remove ( String aKey )
-
save ( String aFilename, String aGroup = )
setValue ( String aKey, Variant aValue )
-
-
toString ( )
value ( String aKey, Variant aDefaultValue ): Variant
-
-
SpectrumRegion ( SpectrumRegion aSpectrumRegion )
SpectrumRegion ( Number aFrom, Number aTo )
SpectrumRegion ( Number aFrom1, Number aTo1, Number aFrom2, Number aTo2 )
enabled: Boolean
maximum: Number
minimum: Number
prefix: String
singleStep: Number
suffix: String
value: Number
MacVer: Number = {Leopard, Lion, MountainLion, SnowLeopard, Tiger}
WinVer: Number = {W2000, W2003, W7, W8, WVISTA, WXP}
isLinux: Boolean
isMac: Boolean
isWin: Boolean
macVersion: Number [read-only]
Returns one of the Mac version enumeration values
NOTE: The Mac version enumeration and this property are only defined in Mac machines.
windowsVersion: Number [read-only]
Returns one of the Windows version enumeration values
NOTE: The Windows version enumeration and this property are only defined in Windows machines.
addTab ( Widget aWidget, String aTitle )
removeTab ( Number aIndex )
setTabText ( Number aIndex, String aTitle )
TextDocument ( )
TextDocument ( Widget aTextEditWidget )
addResourcePixmap ( String aUrl, String | Pixmap aPixmap )
addResourceStyleSheet ( String aUrl, String aCSS )
setHtml ( String aHtml )
setPlainText ( String aText )
toHtml ( ): String
toPlainText ( ): String
write ( String aFilePath )
codec: String
Valid values: {"Apple Roman", "Big5", "Big5-HKSCS", "CP949", "EUC-JP", "EUC-KR", "GB18030-0", "IBM 850", "IBM 866", "IBM 874", "Iscii-Bng", "Iscii-Dev", "Iscii-Gjr", "Iscii-Knd", "Iscii-Mlm", "Iscii-Ori", "Iscii-Pnj", "Iscii-Tlg", "Iscii-Tml", "ISO 2022-JP", "ISO 8859-1", "ISO 8859-10", "ISO 8859-13", "ISO 8859-14", "ISO 8859-15", "ISO 8859-16", "ISO 8859-2", "ISO 8859-3", "ISO 8859-4", "ISO 8859-5", "ISO 8859-6", "ISO 8859-7", "ISO 8859-8", "ISO 8859-9", "JIS X 0201", "JIS X 0208", "KOI8-R", "KOI8-U", "MuleLao-1", "ROMAN8", "Shift-JIS", "TIS-620", "TSCII", "UTF-16", "UTF-16BE", "UTF-16LE", "UTF-32", "UTF-32BE", "UTF-32LE", "UTF-8", "Windows-1250", "Windows-1251", "Windows-1252", "Windows-1253", "Windows-1254", "Windows-1255", "Windows-1256", "Windows-1257", "Windows-1258", "WINSAMI2"}
See also: IANA character set name or alias
notation: Number
Valid values: {TextStream.nFixed, TextStream.nScientific, TextStream.nSmart}
pos: Number
precision: Number
TextStream ( File aIODevice )
TextStream ( TextStream aStream )
atEnd ( ): Boolean
flush ( )
read ( Number aMaxLen ): String
readAll ( ): String
readLine ( ): String
readNumber ( ): Number
readString ( ): String
skip ( Number aSize )
skipWhiteSpace ( )
toString ( ): String
write ( Variant aParam1, ..., Variant aParamN ): Boolean
writeln ( Variant aParam1, ..., Variant aParamN ): Boolean
Timer ( )
checkable: Boolean
checked: Boolean
text: String
originalFormat: String [read-only]
Valid values: {"JCAMP-DX IR", "MNova", "Omnic SPA", "Thermo Galactic GRAMS IR", "Unknown", "UVIR CSV"}
UVIRSpectrum ( UVIRSpectrum aSpectrum )
count ( ): Number
isValid ( ): Boolean
peaks ( ): Array
process ( procFile ): Boolean
-
Tests: Number = {C13ASSIGN, C13NN, C13PBM, H1ASSIGN, H1MC, H1NN, H1PBM, H1PBM_L, HSQC_XCOR, MS_MolMatch, MS_MolMatch_Purity, MS_MolMatch_Similarity}
beginDate: Date [read-only]
id: Number [read-only]
messages: Array [read-only]
See also: ASVWarning
priorConfidence: Number [read-only]
quality: Number [read-only]
result: Number [read-only] [deprecated]
score: Number [read-only]
significance: Number [read-only]
testsResults: Array [read-only]
See also: VerificationTestResult
testResult ( Number aTestType ): VerificationTestResult
-
See also: VerificationTestResult
extData: Object [read-only]
id: Number [read-only]
quality: Number [read-only]
result: Number [read-only] [deprecated]
score: Number [read-only]
significance: Number [read-only]
XmlQuery ( Number aQueryLanguage )
-
Valid values: {QXmlQuery.XSLT20, XmlQuery.XQuery10}
bindVariable ( String aName, Variant aValue )
evaluate ( ): String
setFocus ( String aDocContents )
setQuery ( String aQuery )
Zip ( String aPath, String aBasepath = '' )