Name | Type | Comments |
---|---|---|
applicationName | String | |
clipboard | Clipboard | |
identityManager | IdentityManager | [read-only] |
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] |
version.release | String | [read-only] |
version.revision | Number | [read-only] |
See also: Clipboard
identityManager : IdentityManager [read-only]
mainWindow : MainWindow [read-only]
Valid values: {"Chemist", "Console", "Full", "Lite"}
Name | Output | Parameters |
---|---|---|
blockSignals | QObject aObj, Bool aBlock | |
checkDependencies | Array aPlgArr | |
createUuid | ||
exit | Number aStatus | |
getPluginInfo | Object | String|RegExp aPluginID |
loadUi | Object | String aUiString, String aWorkingDir = Dir.application() |
loadUiFile | Object | String aUiFile, String aWorkingDir = Dir.application() |
lockDocument | Document aDocument | |
markForDeletion | QObject aObj | |
openUrl | String aUrl | |
quit | ||
requestUiUpdate | String aUuid | |
setExitStatus | Number aStatus | |
unlockDocument |
-
-
-
-
lockDocument (Document aDocument)
-
Name | Type | Comments |
---|---|---|
borderColor | String | |
color | String | |
name | String | |
opacity | Number |
AreaSeries ()
Name | Output | Parameters |
---|---|---|
setLowerSeries | LineSeries aLineSeries | |
setUpperSeries | LineSeries aLineSeries |
setLowerSeries (LineSeries aLineSeries)
-
setUpperSeries (LineSeries aLineSeries)
-
Name | Type | Comments |
---|---|---|
endX | Number | |
endY | Number | |
origin | Object | |
startX | Number | |
startY | Number |
Arrow (Arrow aArrow)
Name | Output | Parameters |
---|---|---|
endHead | Object | |
setEndHead | Object aObject | |
setStartHead | Object aObject | |
startHead | Object | |
toString | String |
Name | Type | Values |
---|---|---|
VerifyFlags | Number | NMRAbsReference, None, RedoNMRPredictions |
Name | Type | Comments |
---|---|---|
negativeThreshold | Number | |
positiveThreshold | Number | |
settings | ASVSettings | [read-only] |
settings : ASVSettings [read-only]
ASVPlugin (ASVPlugin aASVPlugin)
Name | Output | Parameters |
---|---|---|
getResults | Array | PageItem aSpecItem |
getResults | Array | Molecule aMolecule |
getResults | Array | |
getResults | Array | PageItem aSpecItem, Molecule aMolecule |
modifyPriorConfidence | aPriorConfidence, [Number aId] | |
moleculeIdFromResult | String | VerificationResult aResult |
moleculeIdFromResult | String | VerificationResult aResult |
moleculeIdFromResult | String | VerificationResult aResult |
moleculeIdFromResult | String | VerificationResult aResult |
scoreToColor | aScore, [ aPositiveThreshold], [ aNegativeThreshold] | |
spectraItemsFromResult | Array | VerificationResult aResult |
verify | VerificationResult | Array aNMRGroup, Molecule aMolecule, [MassItem aMSItem], [Number aFlags], [Number aPriorConfidence] |
getResults (PageItem aSpecItem) : Array
getResults (Molecule aMolecule) : Array
-
-
-
-
moleculeIdFromResult (VerificationResult aResult) : String
-
moleculeIdFromResult (VerificationResult aResult) : String
-
moleculeIdFromResult (VerificationResult aResult) : String
-
moleculeIdFromResult (VerificationResult aResult) : String
-
-
-
spectraItemsFromResult (VerificationResult aResult) : Array
-
verify (Array aNMRGroup, Molecule aMolecule, [MassItem aMSItem], [Number aFlags], [Number aPriorConfidence]) : VerificationResult
-
-
-
-
Name | Type | Comments |
---|---|---|
mass | MassVerifySettings | [read-only] |
nmr | NMRVerifySettings | [read-only] |
mass : MassVerifySettings [read-only]
nmr : NMRVerifySettings [read-only]
See also: VerificationResult.messages
Name | Type | Comments |
---|---|---|
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] |
Name | Type | Comments |
---|---|---|
alias | String | |
assignmentQuality | Number | [read-only] |
assignmentStability | Number | [read-only] |
charge | Number | |
color | String | |
elementSymbol | String | |
isotope | Number | |
nH | Number | |
nHAll | Number | |
number | String | |
protonNotation | Number | |
stereoNotation | String | [read-only] |
text | String | |
valence | Number |
Valid values: {Atom.AssignmentStability.Normal, Atom.AssignmentStability.Stable, Atom.AssignmentStability.Unknown}
Valid values: {"#RRGGBB", "Color Keywords"}
Valid values: {Atom.AB, Atom.ALPHABETA, Atom.AXEQ, Atom.CISTRANS, Atom.QUOTES}
Atom (Atom aAtom)
Name | Output | Parameters |
---|---|---|
protonLabel | String | Number aIndex |
toString | String |
-
Valid values: {1, 2, 3}
Name | Type | Comments |
---|---|---|
atom | Object | |
correlations | Object | |
couplings | Object | |
element | String | |
shift | Object|Number|Array |
assignments = [
{
"atom": {
"index": 12
},
"correlations": {
"HSQC": [
{
"h": "a",
"index": 12
},
{
"h": "b",
"index": 12
}
]
},
"element": "C",
"flags": "None",
"shift": [
{
"idTypes": [
{
"type": "Multiplet",
"uuid": "{0c4beca2-4d3f-4c03-8083-aaec80b14923}"
},
{
"type": "Multiplet",
"uuid": "{33cd6b65-9c04-49eb-b5a4-18abc8cfccf6}"
}
],
"max": 28.241178376670312,
"min": 25.422526556508174,
"shift": 26.831852466589243
}
]
},
{
"atom": {
"h": "a",
"index": 12
},
"correlations": {
"HSQC": [
{
"index": 12
}
]
},
"element": "H",
"flags": "None",
"shift": [
{
"idTypes": [
{
"type": "Multiplet",
"uuid": "{0c4beca2-4d3f-4c03-8083-aaec80b14923}"
},
{
"type": "Multiplet",
"uuid": "{e37cdfa6-1bf2-4fe3-9857-d0dca54cdfc5}"
}
],
"max": 2.1854339449513365,
"min": 2.1178452097247282,
"shift": 2.1516395773380323
}
]
},
(...)
]
When C12 is linked to two HSQC-multiplets, and H12' linked to a 1H-multiplet and a HSQC-multiplet.
See also assignmentTest.qs in the examples folder.
Name | Type | Comments |
---|---|---|
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}}
]
};
Name | Type | Comments |
---|---|---|
isEmpty | Boolean | |
isText | Boolean | |
size | Number |
Attachment ()
Name | Output | Parameters |
---|---|---|
binaryDataAsFile | Number | String aPath |
getMetaData | Object | |
getMetaDataValue | Variant | String aName, Variant aDefaultValue |
removeMetaDataValue | String aName | |
setBinaryDataFromFile | Number | String aPath |
setMetaData | Object aObject | |
setMetaDataValue | String aName, Variant aValue | |
setTextData | Number | String aText |
setTextDataFromFile | Number | String aPath, String aCodec |
textData | String |
-
Name | Output | Parameters |
---|---|---|
items | Array | [Array|String aItemIds] |
-
Name | Type | Comments |
---|---|---|
comment | String | |
date | Date | [read-only] |
hostName | String | [read-only] |
itemId | String | [read-only] |
mnovaName | String | [read-only] |
name | String | [read-only] |
osName | String | [read-only] |
user | String | [read-only] |
version | String | [read-only] |
Name | Output | Parameters |
---|---|---|
addCommand | Object | String aName, Function aDoFunction, Object aThisObject, Array aArguments |
items | Array |
-
-
-
-
Name | Type | Comments |
---|---|---|
applyToDAD | Boolean | |
applyToTrace | Boolean | |
offset | Number | |
slope | Number |
Name | Type | Comments |
---|---|---|
alignment | Number | |
categories | Object | |
color | String | |
count | Number | |
gridLineColor | String | |
gridVisible | Boolean | |
labelsAngle | Number | |
labelsColor | String | |
labelsFont | Object | |
labelsVisible | Boolean | |
lineVisible | Boolean | |
max | Number | |
min | Number | |
minorGridLineColor | String | |
minorGridVisible | Boolean | |
orientation | Number | |
reverse | Number | |
shadesBorderColor | String | |
shadesColor | String | |
shadesVisible | Boolean | |
titleFont | Object | |
titleText | String | |
titleVisible | Boolean | |
visible | Boolean |
Name | Output | Parameters |
---|---|---|
append | aSet | |
attachAxis | aAxis | |
barSets |
-
See also: QAbstractSeries::attachAxis
Name | Type | Comments |
---|---|---|
borderColor | String | |
color | String | |
label | String | |
labelColor | String | |
labelFont | Object |
Name | Output | Parameters |
---|---|---|
append | aSet |
Name | Output | Parameters |
---|---|---|
mmToScale | Object | Object aPoint |
plotAt | String | Object aPoint |
scaleToMm | Object | Object aPoint |
-
-
See also: MassItemPlot.id
-
Name | Type | Comments |
---|---|---|
endianness | Number | |
pos | Number |
Valid values: {BinaryStream.eBig, BinaryStream.eLittle}
BinaryStream (File aIODevice)
BinaryStream (BinaryStream aStream)
BinaryStream (String aHexStr)
Name | Output | Parameters |
---|---|---|
atEnd | Boolean | |
readBool | ||
readBytes | ByteArray | Number aSize |
readCString | ||
readInt16 | ||
readInt32 | ||
readInt64 | ||
readInt8 | ||
readObj | Object | |
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 | |
writeObj | Boolean | aObj |
writeReal32 | Number aValue | |
writeReal64 | Number aValue | |
writeString | String aValue |
Name | Type | Comments |
---|---|---|
f1 | Object | |
f2 | Object | |
name | String |
BlindRegion (Number aFrom, Number aTo)
BlindRegion (Number aFrom1, Number aTo1, Number aFrom2, Number aTo2)
Name | Output | Parameters |
---|---|---|
exportList | String | Array aBlindRegionArray |
importList | Array | String aXmlString |
toString | String |
Name | Type | Values |
---|---|---|
BondStereo | Number | bsCisOrTrans, bsDown, bsEither, bsNone, bsUp |
BondType | Number | btAny, btAromatic, btDouble, btDoubleOrAromatic, btSingle, btSingleOrAromatic, btSingleOrDouble, btTriple |
Name | Type | Comments |
---|---|---|
atom1 | Number | |
atom2 | Number | |
bondStereo | BondStereo | |
bondType | BondType |
Bond (Bond aBond)
Name | Output | Parameters |
---|---|---|
toString | String |
Name | Type | Comments |
---|---|---|
size | Number |
ByteArray (String aString, String aCodec = 'Latin1')
ByteArray (ByteArray aBytes)
Name | Output | Parameters |
---|---|---|
at | Number | Number aIndex |
fromBase64 | ByteArray | ByteArray aBase64Array |
fromHex | ByteArray | ByteArray aHexArray |
toBase64 | ByteArray | |
toHex | ByteArray | |
toString | String | String aCodec = 'Latin1' |
Name | Type | Comments |
---|---|---|
currentMouseModeUuid | String | |
defaultActionNames | Array |
CanvasItemView ([Widget aParent])
-
Name | Output | Parameters |
---|---|---|
activeDefaultAction | Action | String aName |
registerMouseModeAction | MouseModeAction | [String aUuid] |
setItem | PageItem aItem |
-
registerMouseModeAction ([String aUuid]) : MouseModeAction
-
See also: MouseModeaction
setItem (PageItem aItem)
Name | Type | Comments |
---|---|---|
labelFormat | String | |
max | Number | |
min | Number | |
startValue | Number | |
titleText | String |
CategoryAxis ()
Name | Output | Parameters |
---|---|---|
append | String aCategoryLabel, Number aCategoryEndValue |
Name | Type | Values |
---|---|---|
Alignment | Number | AlignBottom, AlignLeft, AlignRight, AlignTop |
Name | Type | Comments |
---|---|---|
legend |
See also: QChart::legend
Name | Output | Parameters |
---|---|---|
addAxis | aAxis, aAlignment | |
addSeries | aSerie | |
createDefaultAxis | ||
removeAllSeries | ||
removeSeries | aSerie | |
setAxisX | aAxis, aSerie | |
setAxisY | aAxis, aSerie | |
setLegendMarkerVisibility | aSeries, Boolean aIsVisible | |
toSvg | ByteArray | [Number aWidth], [Number aHeight] |
-
var axisY = new CategoryAxis();
chart.addAxis(axisX, Chart.AlignBottom);
See also: QChart::addAxis
See also: QChart::createDefaultAxes
See also: QChart::removeAllSeries
-
toSvg ([Number aWidth], [Number aHeight]) : ByteArray
Name | Type | Comments |
---|---|---|
chart | Chart |
chart : Chart
See also: QChartView::chart
Name | Output | Parameters |
---|---|---|
setChart | Chart aChart |
setChart (Chart aChart)
Name | Type | Comments |
---|---|---|
checked | bool | |
enabled | Boolean |
CheckBox ()
Name | Output | Parameters |
---|---|---|
setIcon | String aFilePath, Number aWidth, Number aHeight | |
text | String |
dialog.widgets.theCheckBox.setIcon("ricares:theImage.png", 64, 64);
Name | Type | Comments |
---|---|---|
data | Array | |
itemId | String | |
itemInfos | Array | |
options | Object | |
regions | Array |
Name | Output | Parameters |
---|---|---|
raiseDialog |
Name | Type | Comments |
---|---|---|
autoPeakSettings | Object | |
parameters | Object | [read-only] |
peaks | Array | [read-only] |
pointsNumber | Number | [read-only] |
procParams | ChromatogramProcParams | [read-only] |
chrom.activeItem().chromatogram().autoPeakSettings =
{
"AutoWindowSize": false,
"ManualWindowSize": 7,
"Sensitivity": 50
}
print(chrom.activeItem().chromatogram().autoPeakSettings)
procParams : ChromatogramProcParams [read-only]
Name | Output | Parameters |
---|---|---|
addPeak | Boolean | Number aFromRT, Number aToRT |
autoPeakPicking | ||
clearPeaks | ||
dataPoint | Object | Number aIndex |
editPeak | Boolean | Number aId, ChromItem.PeakSpot isStart, Number aX, [Number aY] |
fillPeak | Boolean | Number aId, String aColor |
labelPeak | Boolean | Number aId, String aLabel |
process | ChromatogramProcParams aParams | |
removePeaks | Boolean | Number aPeakIndex |
removePeaks | Boolean | Number aFromRT, Number aToRT |
setDataPoint | Number aIndex, Object aPoint | |
splitPeak | Boolean | Number aId, Number aX, [Number aY] |
-
-
editPeak (Number aId, ChromItem.PeakSpot isStart, Number aX, [Number aY]) : Boolean
-
-
-
-
-
-
-
-
process (ChromatogramProcParams aParams)
-
-
-
-
-
-
Name | Type | Values |
---|---|---|
PeakSpot | Number | End, Start |
Name | Type | Comments |
---|---|---|
activeChromatogramIndex | Number | |
count | Number | [read-only] |
properties | ChromPlotProperties |
properties : ChromPlotProperties
ChromatogramItem (ChromatogramItem aItem)
Name | Output | Parameters |
---|---|---|
appendChromatogram | ChromatogramItem aOtherChromItem | |
chromatogram | Chromatogram | [Number aIndex] |
removeChromatogram | Boolean | Number aIndex |
appendChromatogram (ChromatogramItem aOtherChromItem)
-
-
-
Name | Type | Comments |
---|---|---|
normalization | ChromNormalizationParams | |
timeShift | ChromTimeShiftParams |
normalization : ChromNormalizationParams
timeShift : ChromTimeShiftParams
Name | Type | Comments |
---|---|---|
apply | Boolean | |
factor | Number |
Name | Type | Comments |
---|---|---|
stacked | PlotStackedAxisProps |
stacked : PlotStackedAxisProps
Name | Type | Comments |
---|---|---|
axes | ChromPlotAxesProps | |
background | PlotBackgroundProps | |
grid | PlotGridProps | |
line | Plot1DLineProps | |
peaks | PlotChromPeaksProps | |
title | PlotTitleProps |
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)
Name | Output | Parameters |
---|---|---|
activeItem | ChromatogramItem | |
loadParametersCustomization | Boolean | String aFileName, [String aFileFormat] |
activeItem () : ChromatogramItem
See also: Application.clipboard
Name | Type | Comments |
---|---|---|
formats | Array | |
hasHtml | Boolean | |
hasPixmap | Boolen | |
hasText | Boolean | |
hasUrls | Boolean | |
html | String | |
pixmap | Pixmap | |
text | String | |
urls | Array |
Name | Output | Parameters |
---|---|---|
data | ByteArray | String aMimeType |
setData | String aMimeType, ByteArray aData |
See also: ByteArray
function clipboardTest() {
'use strict';
Application.clipboard.text = "My Text";
print(Application.clipboard.text);
//Application.clipboard.dataChanged.connect(function() {
// print(Application.clipboard.formats);
//});
}
Name | Output | Parameters |
---|---|---|
getColor | String | String aInitialColor, Object aParent, String aTitle, [Number aOptions] |
ColorDialog.getColor (String aInitialColor, Object aParent, String aTitle, [Number aOptions]) : String
-
See also: ColorDialogOptions
Name | Type | Comments |
---|---|---|
count | Number | |
currentIndex | Number | |
currentText | String | |
items | Array |
Name | Output | Parameters |
---|---|---|
addItem | String aItemName | |
clear |
Name | Type | Values |
---|---|---|
CSPMaxMedianFactor | Number | Q1, Q2, Q3 |
CSPMaxMode | Number | CSPMaxMean, CSPMaxMedian |
Name | Type | Comments |
---|---|---|
cspMaxFilterMethod | CSPMaxMode | |
cspMaxMeanThreshold | Number | |
cspMaxMedianThreshold | CSPMaxMedianFactor | |
disableInvalidKds | Number | |
filterByCspMax | Boolean | |
filterByKdAbsoluteValue | Boolean | |
filterByKdRelativeError | Boolean | |
kdRelativeErrorThreshold | Number |
CSPFilterOptions ()
Name | Type | Values |
---|---|---|
Number | Q1, Q2, Q3 | |
Number | AutoAll, AutoMean, AutoMedian |
Name | Type | Comments |
---|---|---|
itemId | String | [read-only] |
kd | Number | [read-only] |
kdStdDev | Number | [read-only] |
peakSeries | Array | |
reactionProperties | Array | |
settings | Object | |
title | String | |
uuid | String | [read-only] |
CSPResult ()
Name | Output | Parameters |
---|---|---|
addPeakSerie | Object aPeakPos | |
findResultById | String aID | |
getAllResults | ||
isValid | ||
recalculateKd | CSPFilterOptions aOpts |
-
-
See also: CSPFilterOptions
Name | Type | Comments |
---|---|---|
endingPointPpm | Number | |
lineFirstValue | String | |
lineLastValue | String | |
numberOfPoints | Number | |
ppmPrecision | Number | |
startingPointPpm | Number | |
valuePrecision | Number | |
valueSeparator | String |
CSVNMRConverter ()
Name | Output | Parameters |
---|---|---|
exportItems | NMRSpectrum aSpectrum, String aFilePath | |
setDefaultSettings |
exportItems (NMRSpectrum aSpectrum, String aFilePath)
var cnv = new CSVNMRConverter();
cnv.startingPointPpm = 2.0;
cnv.endingPointPpm = 4.0;
cnv.numberOfPoints = 10;
cnv.valuePrecision = 2;
cnv.ppmPrecision = 1;
var spc = nmr.activeSpectrum();
cnv.exportItems(spc, 'C:/dev/tmp/output.csv');
Name | Type | Comments |
---|---|---|
endX | Number | |
endY | Number | |
startX | Number | |
startY | Number |
CurvedArrow (CurvedArrow aCurvedArrow)
Name | Output | Parameters |
---|---|---|
endHead | Object | |
setEndHead | Object aObject | |
setStartHead | Object aObject | |
startHead | Object | |
toString | String |
See also: DBPlugin.client, DBPlugin.createClient
Name | Type | Comments |
---|---|---|
connectionUrl | DBUrl | [read-only] |
database | String | |
host | String | [read-only] |
name | String | [read-only] |
port | int | [read-only] |
serverProperties | Object | [read-only] |
serverRevision | Number | [read-only] |
serverVersion | String | [read-only] |
user | String | [read-only] |
mainWindow.doAction("dbDatabaseOpen");
print(DBPlugin.client.database);
See also: connected, databases, host, openDatabase
See also: host
See also: connected
See also: connected, serverProperty, serverRevision, serverVersion
See also: connected, serverProperties, serverVersion
See also: connected, serverProperties, serverRevision
See also: connected
Name | Output | Parameters |
---|---|---|
connect | Boolean | DBUrl aConnectionUrl |
connect | Boolean | String aConnectionString |
connect | Boolean | String aServer, int aPort, String aUser, String aPassword, [String aDatabase] |
connected | Boolean | |
createDatabase | Boolean | DBDefinition aDefinition |
databases | Array | |
definition | DBDefinition | [String aDatabaseName] |
deleteDatabase | Boolean | String aDatabaseName |
deleteItems | int | String aRecordRange, String aItemType, String aItemRange |
deleteRecords | int | String aRecordRange |
disconnect | ||
openDatabase | Boolean | String aDatabaseName |
saveRecord | int | int aRecordId, Array aItems |
sendRequest | String | String aRequest |
serverProperty | Object | String aPropertyName |
toString | String |
-
var db = DBPlugin.createClient();
var url = DBUrl("mndb://Test:database@localhost:5504/mydb")
db.connect(url)
if (db.connected())
MessageBox.information("Connected as user 'Test' to database 'mydb' on server 'localhost'.");
else
MessageBox.critical("Could not connect.");
db.disconnect();
See also: DBUrl
- mndb://[username[:password]@]host[:port][/database]
.
Examples:
var db = DBPlugin.createClient();
db.connect("mndb://Test:database@localhost:5504/mydb")
if (db.connected())
MessageBox.information("Connected as user 'Test' to database 'mydb' on server 'localhost'.");
else
MessageBox.critical("Could not connect.");
db.disconnect();
-
-
-
-
-
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();
-
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
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
-
See also: DBDefinition
-
-
-
-
// Database mydatabase must exist or deleteItems will return -1
var db = DBPlugin.createClient();
db.connect("localhost", 5504, "Test", "secret", "mydatabase");
print(db.deleteItems("1", "Molecule", "0")); // Delete molecule from record 1
print(db.deleteItems("17", "NMR Spectrum", "2,3")); // Delete NMR spectra 2 and 3 from record 17
print(db.deleteItems("1-5", "Mass Chromatogram", "0")); // Delete all Mass Chromatograms from records 1-5
db.disconnect();
See also: database, deleteRecords, openDatabase
-
var db = DBPlugin.createClient();
db.connect("localhost", 5504, "Test", "secret", "mydatabase");
if (!db.connected())
MessageBox.critical("Could not connect.");
print("Deleting record 18 from database '" + db.database + "'.") // mydatabase
var result = db.deleteRecords(18);
print("Result: " + result);
db.disconnect();
See also: database, deleteItems, openDatabase
-
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();
-
-
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();
-
-
print(DBPlugin.client.connected() ? "Connected to " + DBPlugin.client.serverProperty("PRODUCT_NAME") : " Not connected.");
See also: connected, serverProperties
See also: DBClient.createDatabase
Name | Type | Comments |
---|---|---|
clientVersion | String | [read-only] |
created | String | [read-only] |
creator | String | [read-only] |
name | String | |
records | Int | [read-only] |
serverVersion | String | [read-only] |
version | String |
Name | Output | Parameters |
---|---|---|
addField | Boolean | String aItemType, String aName, String aType, Number aSize = 0, String aContentDef, String aComment |
addItemType | Boolean | String aName, String aType, String aComment |
contentDef | String | String aItemType, String aFieldName |
defaultDefinition | DBDefinition | [String aName = ""] |
emptyDefinition | DBDefinition | [String aName = ""] |
fields | Array | String aItemType |
hasField | Boolean | String aItemType, String aName |
hasItemType | Boolean | String aItemType |
itemTypes | Array | |
removeField | Boolean | String aItemType, String aName |
removeItemType | Boolean | String aName |
toString | String | |
toXml | 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
-
-
Valid values: {"COMP", "GENERIC", "NMR"}
-
See also: addField, hasItemType, removeItemType
-
-
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
-
See also: emptyDefinition
-
See also: addField, addItemType, defaultDefinition
-
-
-
See also: addField, hasItemType, removeField
-
See also: addItemType, hasField, removeItemType
-
-
// 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
-
// Dont store any molecules:
var dbdef = DBDefinition.defaultDefinition("MyDatabase");
dbdef.removeItemType("Molecule");
See also: addItemType, removeField
Name | Type | Comments |
---|---|---|
type | String |
See also: DBDefinition.addItemType
DBItem ()
DBItem (String aType)
DBItem (String aType, Object aFields)
var dbitem = new DBItem("Molecule", { "Name": "Catechin", "Formula": "C15H14O6", "AtomCount": 21, "Mass": 290.08 });
print(dbitem);
DBItem (DBItem aItem)
-
Name | Output | Parameters |
---|---|---|
addField | String aFieldName, Variant aValue | |
field | Variant | String aFieldName |
fieldNames | Array | |
hasField | Boolean | String aFieldName |
removeField | String aFieldName | |
setField | String aFieldName, Variant aValue | |
toString | String |
-
-
See also: DBDefinition.addField, field, removeField
-
See also: fieldNames, setField
-
-
See also: DBDefinition.removeField, field, setField
-
-
var dbitem = 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
Name | Type | Comments |
---|---|---|
client | DBClient | [read-only] |
mainWindow.doAction("dbDatabaseOpen");
print(DBPlugin.client.database);
See also: createClient, DBClient
Name | Output | Parameters |
---|---|---|
int | DBClient aClient, Array aItems | |
createBrowser | Array aRecords, [String aContext] | |
createClient | DBClient | |
getRecord | DBRecord | DBClient aClient, int aRecordId, [Boolean aPaste = true] |
getRecordItem | DBItem | DBClient aClient, int aRecordId, String aItemType, int aItemID, [Boolean aPaste = true], [int aPage] |
Array | DBClient aClient, Number aRecordId | |
search | DBSearchHits | DBClient aDBClient, String aQuery, [String aSearchType = "TEXT"], [String aItemType = ""], [String aFieldName = ""], [Number aMaxHits = 1000], [Number aMaxRecords = 100], [Number aMinHitQuality = 1000] |
toString | String |
-
See also: DBClient
-
See also: DBClient.saveRecord, getRecord
-
-
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);
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();
}
See also: addRecord, DBRecord, getRecordItem
getRecordItem (DBClient aClient, int aRecordId, String aItemType, int aItemID, [Boolean aPaste = true], [int aPage]) : DBItem
-
See also: DBClient
-
-
-
-
-
var db = DBPlugin.createClient();
db.connect("localhost", 5504, "test", "secret", "testdb");
# Get the molecule from record 1
var molitem = DBPlugin.getRecordItem(db, 1, "Molecule", 0, false);
print(molitem.field("Molucular Formula"));
# Get the first NMR spectrum from record 3 and paste into first page of document
var specitem = DBPlugin.getRecordItem(db, 3, "NMR Spectrum", 1, true, 1);
db.disconnect();
-
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", "MASSDATA", "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
See also: DBPlugin.getRecord
Name | Output | Parameters |
---|---|---|
id | Number | |
items | Array | |
toString | String | |
url | String |
See also: DBPlugin.search, DBSearchHits.at
Name | Output | Parameters |
---|---|---|
itemId | Number | |
recordId | Number | |
score | Number | |
toString | String |
See also: DBPlugin.search
Name | Type | Comments |
---|---|---|
count | Number | [read-only] |
length | Number | [read-only] |
See also: DBSearchHits.count
Name | Output | Parameters |
---|---|---|
at | DBSearchHit | Number aIndex |
at (Number aIndex) : DBSearchHit
-
mndb://[username[:password]@]host[:port][/database[/recordid[/itemtypeid/itemid[/fieldid]]]]Examples:
Name | Type | Comments |
---|---|---|
database | String | |
fieldId | Number | |
host | String | |
itemId | Number | |
itemTypeId | Number | |
password | String | |
port | Number | |
recordId | Number | |
user | String |
DBUrl ()
DBUrl (String aUrl)
Name | Output | Parameters |
---|---|---|
setAuthority | String aUser, String aPassword | |
toString | String | Boolean aIncludePassword = false |
-
Name | Type | Comments |
---|---|---|
cancelButtonText | String | |
enabled | Boolean | |
okButtonText | String | |
title | String |
Dialog ()
Name | Output | Parameters |
---|---|---|
add | Widget aWidget | |
addSpace | Number aSpace | |
exec | Number |
Name | Type | Comments |
---|---|---|
absPath | String | |
exists | Boolean | |
name | String |
Dir (String aDirPath)
Dir (Dir aDir)
Name | Output | Parameters |
---|---|---|
alphanumericPathsCompare | Number | String aPath1, String aPath2 |
appDataCommon | String | |
appDataUser | String | |
application | String | |
canonicalPath | String | |
canonicalPath | String | String aDirPath |
cd | Boolean | String aDirName |
cdUp | Boolean | |
cleanDirPath | String | String aDirPath |
convertSeparators | String | String aDirPath |
copy | Boolean | Dir aSrcDir, Dir aDstDir |
current | String | |
drives | Array | |
entryInfoList | Array | String aWildcard, Number aKind = 0, Number aSortFlags = 0 |
entryList | Array | String aWildcard, Number aKind = 0, Number aSortFlags = 0 |
entryListAdv | Array | String aPathWildcard, Number aDirsSortFlags = Dir.Name, Number aFilesSortFlags = Dir.Name |
fileExists | Boolean | String aName |
filePath | String | String aFileName |
home | String | |
mkdir | Boolean | String aDirName |
mkpath | Boolean | String aDirPath |
numericPathsCompare | Number | String aPath1, String aPath2 |
rename | Boolean | String aOldName, String aNewName |
rmdir | Boolean | String aDirName |
rmpath | Boolean | String aDirPath |
root | String | |
searchPaths | String aPrefix | |
setCurrent | Boolean | String aDirPath |
temp | String | |
toString | String |
var samplesDir = new Dir("c:/samples")
var mayDatasets = samplesDir.entryListAdv("2010-05-??/*/pdata/1/1r")
mayDatasets.sort(Dir.numericPathsCompare)
See also: Dir.appDataUser
-
-
Valid values: {Dir.AccessMask, Dir.All, Dir.Dirs, Dir.Drives, Dir.Executable, Dir.Files, Dir.Hidden, Dir.Modified, Dir.NoDotAndDotDot, 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}
-
-
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")
var samplesDir = new Dir("c:/samples")
var mayDatasets = samplesDir.entryListAdv("2010-05-??/*/pdata/1/1r")
mayDatasets.sort(Dir.numericPathsCompare)
Name | Type | Comments |
---|---|---|
auditTrail | AuditTrailItem | |
currentSignerIdentity | Identity | [read-only] |
docItems | Array | [read-only] |
documentAuditTrail | AuditTrail | |
identities | Array | |
isModified | Boolean | [read-only] |
lastSignerIdentity | Identity | [read-only] |
molTableItems | Array | [read-only] |
name | String | [read-only] |
orientation | String | |
pageItems | Array | [read-only] |
signatureValidationResult | Number | [read-only] |
templateHistory | Boolean | |
uuid | String | [read-only] |
auditTrail : AuditTrailItem
currentSignerIdentity : Identity [read-only]
See also: pageItems
documentAuditTrail : AuditTrail
lastSignerIdentity : Identity [read-only]
Valid values: {"Landscape", "Portrait"}
See also: docItems
Valid values: {0: The signature is valid, 1: There is no signature, 2: The signature data is corrupted, 3: The signature is invalid, 4: An I/O error has occurred when validating the signature}
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)
Name | Output | Parameters |
---|---|---|
addPage | Number aIndex | |
applyTemplateDocument | String aFileName, Object aOptions = undefined | |
attachmentNames | Array | |
clonePages | Array | Array aPages |
close | ||
curPage | Page | |
deleteItems | PageItem | Array aPageItems | |
deletePages | Array aPages | |
destroy | ||
exportToPDF | Boolean | String aOutPath, Array|String|Number|Page aPages |
getActiveItem | ||
getActiveItem | aType | |
getAttachment | Attachment | String aName |
getItem | PageItem | String aUuid |
getMolTableItem | PageItem | String aMoleculeID |
getMolTableItem | PageItem | Number aIndex |
getMolTableItemCount | Number | |
importCompoundsTable | Boolean | Document aDocument |
isValid | Boolean | |
item | PageItem | Number aIndex, String aType |
item | PageItem | Number aIndex |
itemCount | Number | |
itemCount | Number | String aType |
itemsByName | Array | String aType1, ..., String aTypeN |
movePages | Number aIndex, Page | Array aPages | |
newPage | Boolean atEnd | |
page | Page | Number String aPageId |
pageCount | Number | |
pageIndex | Number | Page aPage |
pages | Array | |
pagesIds | Array | |
removeAttachment | Boolean | String aName |
selectedMolTableItems | Array | |
selectedPages | Array | |
selection | Array | |
setActiveItem | PageItem aItem | |
setAttachment | Boolean | String aName, Attachment aAttachment |
setCurPage | Page Number String aPage | |
setCurPageIndex | Number aPageIndex | |
setSelectedMolTableItems | Array aItems | |
setSelectedPages | Array aPages | |
setSelection | Array aItems | |
update |
-
-
-- applyProcessing: apply the processing template of the layout item properties (only valid for NMR Spectrum)
-- applyZoom: apply the zoom of the layout item properties (only valid for NMR Spectrum)
-- applySinglePageTemplateToCurrentPage: apply the layout template (it should have only one page) only to current page
-- applySinglePageTemplateToAllPages: apply the same layout template (it should have only one page) to all pages recursively
When options applySinglePageTemplateToAllPages and applySinglePageTemplateToCurrentPage are both false, the behaviour is the default one: apply all the pages of the layout template to all the pages of the current document.
applyTemplateDocument('c:/MyTemplates/MyLayoutTemplate.mnova', {applyProcessing: true, applyZoom: true, applySinglePageTemplateToCurrentPage: false, applySinglePageTemplateToAllPages: false})
-
curPage () : Page
-
-
-
See also: setActiveItem
getAttachment (String aName) : Attachment
getItem (String aUuid) : PageItem
-
getMolTableItem (String aMoleculeID) : PageItem
-
getMolTableItem (Number aIndex) : PageItem
-
importCompoundsTable (Document aDocument) : Boolean
item (Number aIndex, String aType) : PageItem
-
-
Valid values: {"Arrow", "CurvedArrow", "Ellipse", "ElViS spectrum", "Graph", "Image", "Layout Template", "Mass Spectrum", "Molecule", "NMR Spectrum", "OLE Object", "Polygon", "Rectangle", "Text"}
See also: itemCount
item (Number aIndex) : PageItem
See also: itemCount
-
Valid values: {"Arrow", "CurvedArrow", "Ellipse", "ElViS spectrum", "Graph", "Image", "Layout Template", "Mass Spectrum", "Molecule", "NMR Spectrum", "OLE Object", "Polygon", "Rectangle", "Text"}
page (Number String aPageId) : Page
-
pageIndex (Page aPage) : Number
setAttachment (String aName, Attachment aAttachment) : Boolean
-
See also: curPage, setCurPageIndex
See also: curPage, setCurPage
See also: selectedMolTableItems
-
See also: selectedPages, selection, setSelection
Name | Type | Comments |
---|---|---|
decimals | Number | |
enabled | Boolean | |
maximum | Number | |
minimum | Number | |
prefix | String | |
singleStep | Number | |
suffix | String | |
value | Number |
DoubleSpinBox ()
Name | Type | Comments |
---|---|---|
autoChildrenEnabled | Boolean |
DrawPlugin (DrawPlugin aDrawPlugin)
Name | Output | Parameters |
---|---|---|
arrow | Arrow | Number aStartX, Number aStartY, Number aEndX, Number aEndY, Boolean aShowStartHead, Boolean aShowEndHead |
curvedArrow | CurvedArrow | Number aStartX, Number aStartY, Number aEndX, Number aEndY, Boolean aShowStartHead, Boolean aShowEndHead |
ellipse | Ellipse | Number aLeft, Number aTop, Number aWidth, Number aHeight |
ellipse | Ellipse | Number aWidth, Number aHeight |
heavyAtomsCount | Number | |
polygon | Polygon | Array aPoints |
rectangle | Rectangle | Number aWidth, Number aHeight |
rectangle | Rectangle | Number aLeft, Number aTop, Number aWidth, Number aHeight |
svg | ByteArray aSvgByteArray, String aType, String aSubType | |
text | Text | String aText, Boolean aIsHtml |
text | Text | String aText, String aType, String aSubtype, Boolean aIsHtml, [Option aProps] |
toPixmap | Pixmap | PageItem | Array | Page aObj, Number aDpi |
toString | String |
arrow (Number aStartX, Number aStartY, Number aEndX, Number aEndY, Boolean aShowStartHead, Boolean aShowEndHead) : Arrow
-
-
-
-
-
-
curvedArrow (Number aStartX, Number aStartY, Number aEndX, Number aEndY, Boolean aShowStartHead, Boolean aShowEndHead) : CurvedArrow
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
svg (ByteArray aSvgByteArray, String aType, String aSubType)
-
-
-
-
-
-
-
-
toPixmap (PageItem | Array | Page aObj, Number aDpi) : Pixmap
Name | Output | Parameters |
---|---|---|
run | ECHOSMatrixEvaluationResult | NMRSpectrum aNmrSpectrum, ECHOSOptions aOptions, String aTitle, Boolean aShowChemometricsWindow |
runSimple | ECHOSResult | NMRSpectrum aNmrSpectrum, ECHOSOptions aOptions, String aTitle, Boolean aShowChemometricsWindow, Number aFirstSpectrumIndex, Number aSecondSpectrumIndex |
ECHOS.run (NMRSpectrum aNmrSpectrum, ECHOSOptions aOptions, String aTitle, Boolean aShowChemometricsWindow) : ECHOSMatrixEvaluationResult
-
-
-
-
var i, options, result;
function printResult(aResult) {
"use strict";
print("Result ID: " + aResult.id);
print("Item ID: " + aResult.itemId);
print("Label: " + aResult.label);
print("Regression Line (Y-intercept): " + aResult.regressionLineAlpha);
print("Regression Line (Slope): " + aResult.regressionLineBeta);
print("Correlation coefficient: " + aResult.correlationCoefficient);
print("");
}
options = new ECHOSOptions();
options.thresholdMode = ECHOSOptions.ThresholdMode.Automatic;
result = ECHOS.run(nmr.activeSpectrum(), options, "Result (Automatic Threshold)", true);
if (result.typeName === "ECHOSMatrixEvaluationResult") {
for (i = 0; i < result.results.length; ++i) {
printResult(result.results[i]);
}
} else if (result.typeName === "ECHOSResult") {
printResult(result);
}
ECHOS.runSimple (NMRSpectrum aNmrSpectrum, ECHOSOptions aOptions, String aTitle, Boolean aShowChemometricsWindow, Number aFirstSpectrumIndex, Number aSecondSpectrumIndex) : ECHOSResult
-
-
-
-
-
-
var options = new ECHOSOptions();
options.thresholdMode = ECHOSOptions.ThresholdMode.Visual;
var result = ECHOS.runSimple(nmr.activeSpectrum(), options, "Result (Visual Threshold)", false, 0, 1);
Name | Type | Comments |
---|---|---|
id | Uuid | [read-only] |
results | Array | [read-only] |
title | String | [read-only] |
typeName | String | [read-only] |
Name | Type | Values |
---|---|---|
ThresholdMode | Number | Automatic, Manual, Visual |
Name | Type | Comments |
---|---|---|
thresholdMode | ThresholdMode | |
thresholdValue | Number |
ECHOSOptions ()
var options = new ECHOSOptions();
options.thresholdMode = ECHOSOptions.ThresholdMode.Manual;
options.thresholdValue = 35000.0;
Name | Type | Comments |
---|---|---|
correlationCoefficient | Number | [read-only] |
firstSpectrumIndex | Number | [read-only] |
id | Uuid | [read-only] |
itemId | Uuid | [read-only] |
label | String | [read-only] |
options | ECHOSOptions | [read-only] |
regressionLineAlpha | Number | [read-only] |
regressionLineBeta | Number | [read-only] |
secondSpectrumIndex | Number | [read-only] |
threshold | Number | [read-only] |
typeName | String | [read-only] |
options : ECHOSOptions [read-only]
Ellipse (Ellipse aEllipse)
Name | Output | Parameters |
---|---|---|
toString | String |
ElViSPlugin (ElViSPlugin aElViSPlugin)
Name | Output | Parameters |
---|---|---|
activeSpectrum | ElViSSpectrum | |
createArrayedItem | ElViSSpectrum | Array aSpectra, [Boolean aStacked] |
extractSpectrumFromArrayedItem | ElViSSpectrum | ElViSSpectrum aSpectrum, [Number aIndex] |
activeSpectrum () : ElViSSpectrum
createArrayedItem (Array aSpectra, [Boolean aStacked]) : ElViSSpectrum
-
-
extractSpectrumFromArrayedItem (ElViSSpectrum aSpectrum, [Number aIndex]) : ElViSSpectrum
-
-
Name | Type | Comments |
---|---|---|
comment | String | |
curSpecIndex | Number | |
originalFormat | String | [read-only] |
realFirstX | Number | [read-only] |
realLastX | Number | [read-only] |
realMax | Number | [read-only] |
realMin | Number | [read-only] |
specCount | Number | [read-only] |
spectra | Array | [read-only] |
title | String | [read-only] |
Valid values: {"ElViS CSV", "JCAMP-DX IR", "MNova", "Omnic SPA", "Thermo Galactic GRAMS IR", "Unknown"}
ElViSSpectrum (ElViSSpectrum aSpectrum)
Name | Output | Parameters |
---|---|---|
activeSpectrumHasPeaks | Boolean | |
appendSpectrum | ElViSSpectrum aElViSSpectrum | |
count | Number | |
dataPoint | Object | Number aIndex |
forceStdPeaks | Array | |
isValid | Boolean | |
peaks | Array | |
process | Boolean | procFile |
removeSpectrum | Boolean | Number aSpecIndex |
setDataPoint | Number aIndex, Number aYValue | |
zoom |
appendSpectrum (ElViSSpectrum aElViSSpectrum)
-
-
-
Name | Type | Comments |
---|---|---|
absDirPath | String | |
exists | Boolean | |
name | String | |
size | Number |
File (String aFileName)
File (File aFile)
Name | Output | Parameters |
---|---|---|
absDirPath | String | String aFileName |
close | Boolean | |
copy | Boolean | String aFileName, String aNewFileName |
create | Boolean | String aFileName |
exists | Boolean | String aFileName |
hash | String | String aAlgorithm |
open | bool | Number aMode |
permissions | Number | String aFileName |
permissions | Number | |
remove | Boolean | |
remove | Boolean | String aFileName |
rename | Boolean | String aOldFileName, String aNewFileName |
setPermissions | Boolean | Number aPermissions |
setPermissions | Boolean | String aFileName, Number aPermissions |
Valid values: {"md4", "md5", "sh1", "sh2-224", "sh2-256", "sh2-384", "sh2-512", "sh3-224", "sh3-256", "sh3-384", "sh3-512"}
-
Valid values: {File.Append, File.NotOpen, File.ReadOnly, File.ReadWrite, File.WriteOnly}
See also: File.setPermissions, permissions
See also: File.permissions, setPermissions
-
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
-
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
Name | Output | Parameters |
---|---|---|
getExistingDirectory | String | String aStartDirectory, String aDialogTitle |
getOpenFileName | String | String aFileFilter, String aDialogTitle, String aWorkingDirectory |
getOpenFileNames | Array | String aFileFilter, String aDialogTitle, String aWorkingDirectory |
getSaveFileName | String | String aFileFilter, String aDialogTitle, String aWorkingDirectory, Number aFlag |
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;
Name | Type | Comments |
---|---|---|
absoluteFilePath | String | |
baseName | String | |
completeBaseName | String | |
created | Date | |
exists | Boolean | |
fileName | String | |
isDir | Boolean | |
isFile | Boolean | |
lastModified | Date | |
lastRead | Date | |
path | String | |
size | Number | |
suffix | String |
FileInfo (Array aPath)
-
Name | Type | Comments |
---|---|---|
delay | Number | |
filters | Number | |
ignoreOld | Boolean | |
maxDepth | Number | |
maxNotifyDepth | Boolean | |
maxOldDays | Number | |
nameFilters | Array | |
paths | Array | |
timeOutMinutes | Number | |
useFastHash | Boolean | |
useMultiThread | Boolean | |
useSystemBackend | Boolean |
See also: directoryChangedExt
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
See also: directoryChangedExt
See also: directoryChangedExt
See also: directoryChangedExt
See also: useSystemBackend
See also: timeOutMinutes
FileSystemWatcher (Array aPathArray)
-
Name | Output | Parameters |
---|---|---|
addPath | String aPath | |
removePath | String aPath |
Name | Type | Values |
---|---|---|
Parameter | Number | Center, Height, Shape, Width |
Name | Type | Comments |
---|---|---|
error | Number | |
from | Number | |
name | String | |
peaks | Array | |
to | Number |
See also: Peak.id
FitRegion (FitRegion aFitRegion)
FitRegion (Number aFrom, Number aTo)
FitRegion (Number aFrom, Number aTo, NMRSpectrum aSpc)
Name | Output | Parameters |
---|---|---|
calculateError | NMRSpectrum aSpectrum | |
isParameterLocked | Boolean | Number aParameter, String aPeakId |
lockParameter | Boolean aLock, Number aParameter, [String aPeakId] | |
toString | String |
-
See also: FitRegion.Parameter
-
See also: Peak.id
-
-
See also: FitRegion.Parameter
-
See also: Peak.id
Name | Type | Comments |
---|---|---|
bold | Boolean | |
family | String | |
italic | Boolean | |
size | Number | |
strikeOut | Boolean | |
underline | Boolean |
Name | Output | Parameters |
---|---|---|
getFont | Font | Font aInitialFont, Widget aParent, String aTitle, [Number aOptions] |
getFontFromWidget | Font | Widget aWidget |
setFontToWidget | Font aFont, Widget aWidget |
-
-
See also: FontDialogOptions
var dialog, font;
dialog = Application.loadUiFile("ricares:test18036.ui");
font = FontDialog.getFontFromWidget(dialog);
font = FontDialog.getFont(font, dialog, "Select Font", FontDialog.NoButtons | FontDialog.DontUseNativeDialog);
FontDialog.setFontToWidget(font, dialog.widgets.tbFontDialog);
Name | Type | Comments |
---|---|---|
fitModels | Array | [read-only] |
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: GraphFitModel
responseFactor : GraphResponseFactor [read-only]
See also: GraphYModel
Name | Output | Parameters |
---|---|---|
fitSerieToBest | aSerie | |
toXML | String |
-
See also: Graph
Name | Type | Values |
---|---|---|
FitFunction | Number | FirstOrder, MonoExponential, SecondOrder, ZeroOrder |
Name | Type | Comments |
---|---|---|
fitParams | Object | |
fomula | String | |
reportParams | Object |
GraphFitModel (Number aFitFunction)
See also: GraphFitModel.FitFunction
GraphFitModel (String aFormula, Object aFitParams)
See also: GraphFitModel.formula
See also: GraphFitModel.fitParams
Name | Output | Parameters |
---|---|---|
toString | String |
See also: Graph
Name | Type | Values |
---|---|---|
Mode | Number | Formula, InitialConcentration, PULCON |
Name | Type | Comments |
---|---|---|
func | Object | |
InitConcentration | Number | |
mode | Number | |
PULCON | Number | |
units | String |
See also: GraphResponseFactor.Mode
GraphResponseFactor (Number aMode, Number aValue)
GraphResponseFactor (Number aMode, String aFormula)
Name | Output | Parameters |
---|---|---|
toString | String |
See also: Graph
Name | Type | Values |
---|---|---|
ExtractMode | Number | emConcentration, emIntegral, emMaxPeakInt, emMaxPeakPos, emNone, emPeakInt, emShift |
Name | Type | Comments |
---|---|---|
extractMode | Number | |
f1From | Number | |
f1To | Number | |
label | String | |
nNuclides | Number |
See also: ExtractMode
GraphYModel ( aMod, from, to, nNuclides)
See also: GraphYModel.extractMode
See also: GraphYModel.f1From
See also: GraphYModel.f1To
See also: GraphYModel.nNuclides
Name | Output | Parameters |
---|---|---|
toString | String |
Name | Type | Comments |
---|---|---|
checkable | Boolean | |
checked | Boolean | |
enabled | Boolean | |
title | String |
GroupBox ()
Name | Output | Parameters |
---|---|---|
add | Widget aWidget |
Name | Type | Comments |
---|---|---|
centroid | Number | [read-only] |
effPeaks | Number | [read-only] |
integral | Number | [read-only] |
kurtosis | Number | [read-only] |
rmsWidth | Number | [read-only] |
skewness | Number | [read-only] |
Name | Type | Comments |
---|---|---|
count | Number | [read-only] |
length | Number | [read-only] |
totalIntegral | Number | [read-only] |
See also: GSDMultiplets.count
Name | Output | Parameters |
---|---|---|
at | GSDMultiplet | Number aIndex |
at (Number aIndex) : GSDMultiplet
-
Name | Type | Values |
---|---|---|
Flags | Number | C13Satellite, Hidden, Labile, None, Rotational, Weak |
Types | Number | Artifact, Compound, Impurity, QReference, Solvent, SReference |
Name | Type | Comments |
---|---|---|
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] |
flags : GSDPeak.Flags
type : GSDPeak.Types
Name | Output | Parameters |
---|---|---|
setFlag | GSDPeak.Flags aFlag, [Boolean aEnable] |
setFlag (GSDPeak.Flags aFlag, [Boolean aEnable])
-
-
Name | Type | Comments |
---|---|---|
count | Number | [read-only] |
length | Number | [read-only] |
See also: GSDPeaks.count
Name | Output | Parameters |
---|---|---|
at | GSDPeak | Number aIndex |
at (Number aIndex) : GSDPeak
-
Name | Type | Values |
---|---|---|
ContentType | Number | AlternativeType, FormDataType, MixedType, RelatedType |
HttpMultiPart ()
Name | Output | Parameters |
---|---|---|
append | HttpPart aHttpPart | |
boundary | ByteArray | |
setBoundary | ByteArray aBoundary | |
setContentType | Number aContentType |
append (HttpPart aHttpPart)
boundary () : ByteArray
setBoundary (ByteArray aBoundary)
setContentType (Number aContentType)
-
var filename, imagePart, multiPart, networkAccessManager, networkReply, networkRequest, url;
multiPart = new HttpMultiPart();
multiPart.setContentType(HttpMultiPart.ContentType.FormDataType);
filename = 'C:/tmp/test.jpg';
imagePart = new HttpPart();
imagePart.setHeader(NetworkRequest.ContentTypeHeader, "image\/jpeg");
imagePart.setHeader(NetworkRequest.ContentDispositionHeader, 'form-data; name=\"file\"; filename=\"test.jpg\"');
imagePart.setBodyDevice(filename);
multiPart.append(imagePart);
networkRequest = new NetworkRequest();
url = 'http://localhost:9595/api/dev/upload/file';
networkRequest.setUrl(url);
networkAccessManager = new NetworkAccessManager();
networkReply = networkAccessManager.post(networkRequest, multiPart);
HttpPart ()
Name | Output | Parameters |
---|---|---|
setBody | ByteArray aBody | |
setBodyDevice | String aFilepath | |
setHeader | Number aHeader |
setBody (ByteArray aBody)
-
Name | Type | Comments |
---|---|---|
comments | String | [read-only] |
creationDate | Date | [read-only] |
days | Number | [read-only] |
String | [read-only] | |
expiryDate | Date | [read-only] |
isPrivate | Boolean | [read-only] |
isValid | Boolean | [read-only] |
name | String | [read-only] |
organization | String | [read-only] |
role | String | [read-only] |
serial | String | [read-only] |
thumbprint | String | [read-only] |
Name | Type | Comments |
---|---|---|
comments | String | |
creationDate | Date | |
days | Number | |
String | ||
expiryDate | Date | |
name | String | |
organization | String | |
role | String |
Name | Type | Comments |
---|---|---|
identities | Array |
Name | Output | Parameters |
---|---|---|
changeIdentityPassword | Boolean | String aIdentityThb, String aOldPwd, String aNewPwd |
exportIdentities | Boolean | Array aIdentities, String aPath, [Boolean aOnlyPub = true] |
extendIdentityExpiryDate | String | String aIdentityThb, String aPwd, [Date aDate] |
importIdentities | Boolean | String aPath |
isIdentityTrust | Boolean | String aIdentityThb |
newIdentity | String | Object aData, String aPassword |
removeDocumentSigner | String aDocUuid | |
removeIdentity | Boolean | String aIdentityThb |
setDocumentSigner | String aDocUuid, String aIdentityThb, String aPwd |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
See also: Settings
IniFile (String aFilePath, [String aPreffix])
Name | Output | Parameters |
---|---|---|
fileName | String |
Name | Output | Parameters |
---|---|---|
getDouble | Number | String aTitle, String aLabel, Number aValue, Number aMin, Number aMax, Number aDecimals |
getInt | Number | String aTitle, String aLabel, Number aValue, Number aMin, Number aMax, Number aStep |
getItem | String | String aTitle, String aLabel, Array aItems, Number aCurrent, Boolean aEditable |
getText | String | String aTitle, String aLabel, LineEdit.EchoMode aEchoMode, String aText |
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
Name | Type | Comments |
---|---|---|
calculationParams | Object | [read-only] |
id | String | [read-only] |
Integral (Integral aIntegral)
Integral (NMRSpectrum aSpectrum, SpectrumRegion aSpectrumRegion, Boolean aEllipse = true)
-
Name | Output | Parameters |
---|---|---|
integralValue | Number | Number aNormFactor |
rangeMax | Number | Number aDim |
rangeMin | Number | Number aDim |
toString | String |
Name | Type | Comments |
---|---|---|
count | Number | |
normValue | Number |
Integrals ()
Integrals (Integrals aIntegralList)
Name | Output | Parameters |
---|---|---|
append | Integral aIntegral | |
at | Integral | Number aIndex |
clear | ||
findIntegral | Integral | String aId |
removeAt | Number aIndex | |
toString | String |
Name | Type | Comments |
---|---|---|
count | Number | |
length | Number |
JList ()
JList (JList aJList)
Name | Output | Parameters |
---|---|---|
append | Number aJ | |
at | Number | |
clear | ||
removeAt | Number aIndex | |
sort | Boolean bAscending | |
toString | String |
Name | Type | Comments |
---|---|---|
text | String |
Label ()
Name | Output | Parameters |
---|---|---|
setFont | Font aFont | |
setPixmapPath | String aPath |
Name | Type | Comments |
---|---|---|
managedName | String | [read-only] |
LayoutTemplate (LayoutTemplate aLayoutTemplate)
Name | Type | Values |
---|---|---|
EchoMode | Number | NoEcho, Normal, Password, PasswordEchoOnEdit |
Name | Type | Comments |
---|---|---|
echoMode | LineEdit.EchoMode | |
enabled | Boolean | |
label | String | |
text | String |
echoMode : LineEdit.EchoMode
LineEdit ()
Name | Type | Values |
---|---|---|
PenStyle | Number | DashDotDotLine, DashDotLine, DashLine, DotLine, NoPen, SolidLine |
Name | Type | Comments |
---|---|---|
color | String | |
name | String | |
style | PenStyle | |
width | Integer |
var lineSeries = new LineSeries();
lineSeries.style = LineSeries.SolidLine;
LineSeries ()
Name | Output | Parameters |
---|---|---|
append | aValueX, aValueY | |
attachAxis | aAxis |
-
See also: QAbstractSeries::attachAxis
Name | Type | Comments |
---|---|---|
items | Array | |
selectedRows | Array | [read-only] |
selection | Array | [read-only] |
ListWidget ()
Name | Type | Comments |
---|---|---|
base | Number | |
labelFormat | String | |
max | Number | |
min | Number | |
minorTickCount | Number | |
titleText | String |
LogValueAxis ()
Name | Type | Comments |
---|---|---|
activeDocument | Document | |
enableUndo | Boolean | |
hasGui | Boolean |
activeDocument : Document
MainWindow (MainWindow aMainWnd)
Name | Output | Parameters |
---|---|---|
abort | ||
addDocument | Document aDocument | |
blockEventHandlers | Boolean | String aEvent, Boolean aBlock |
clearStatusMessage | ||
doAction | String aActName | |
documents | Array | |
endBusy | ||
getAction | Action | String aActName |
getDockWidgetVisibility | Boolean | String aName |
getObject | String aObjectName | |
installEventHandler | String aEventName, String aFunctionName | |
newDocument | Document | |
processEvents | ||
registerDockWidget | String aDockWidgetName, String aTitle, String aCategory, function aCreationFunction | |
removeEventHandler | String aEventName, String aFunctionName | |
reportActivity | ||
restoreCursor | ||
setBusy | String aMessage | |
setDockWidgetVisibility | String aName, Boolean aVisibility | |
setStatusMessage | String aMessage | |
setWaitCursor | ||
sleep | Number aTime | |
waitForInput | String aText, String aWindowTitle = "" |
-
-
See also: installEventHandler
See also: setBusy
var mnovaAction = mainWindow.getAction("nmrPeakPickingOptions");
dialog.widgets.tbMnovaAction.setDefaultAction(mnovaAction);
-
-
-
Valid values: {"activeDocumentChanged", "arrowChanged", "dbItemsPasted", "itemMoved", "itemsCreated", "itemsDeleted", "KeyPress", "MouseButtonDblClick", "MouseButtonPress", "MouseButtonRelease", "MouseMove", "msChromPeaksChanged", "msSpectrumImported", "nmrAssignmentHighlighted", "nmrAssignmentMade", "nmrIntegralChanged", "nmrMultipletChanged", "nmrMultipletHighlighted", "nmrSpectrumChanged", "nmrSpectrumImported", "selectionChanged", "ShortcutOverride", "verificationResult"}
-
See also: blockEventHandlers
newDocument () : Document
registerDockWidget (String aDockWidgetName, String aTitle, String aCategory, function aCreationFunction)
-
-
-
-
-
Valid values: {"dbItemsPasted", "KeyPress", "MouseButtonDblClick", "MouseButtonPress", "MouseButtonRelease", "MouseMove", "nmrAssignmentHighlighted", "nmrAssignmentMade", "nmrIntegralChanged", "nmrMultipletChanged", "nmrMultipletHighlighted", "nmrSpectrumImported", "ShortcutOverride"}
-
See also: blockEventHandlers
See also: endBusy, setWaitCursor
-
See also: endBusy
-
-
-
See also: clearStatusMessage, setBusy
See also: restoreCursor, setBusy
-
-
-
Name | Type | Comments |
---|---|---|
adduct | String | [read-only] |
loss | String | [read-only] |
Name | Type | Comments |
---|---|---|
abundanceThreshold | Number | |
deconvolutedMassMax | Number | [read-only] |
deconvolutedMassMin | Number | [read-only] |
mzMax | Number | [read-only] |
mzMin | Number | [read-only] |
tolerance | Number | |
zMax | Number | [read-only] |
zMin | Number | [read-only] |
Name | Output | Parameters |
---|---|---|
setChargeStateRange | Number aMin, Number aMax | |
setDeconvolutedMassRange | Number aMin, Number aMax | |
setMzRange | Number aMin, Number aMax |
See also: deconvolutedMassMin
See also: deconvolutedMassMax
Name | Type | Comments |
---|---|---|
area | Number | |
baseline | Object | |
center | Object | |
end | Object | |
fill | String | |
height | Number | |
label | String | |
start | Object | |
type | MassItem.ChromatogramPeakType |
Name | Type | Comments |
---|---|---|
maxDistance | Number | |
minIntensityRatio | Number |
Name | Type | Comments |
---|---|---|
chromatogramsCount | Number | |
clusterSettings | MassChromPeakPurityClusterOptions | |
massRanges | Array | |
mode | String | |
tolerance | Number |
clusterSettings : MassChromPeakPurityClusterOptions
Valid values: {"Clusters", "Peaks", "Predefined"}
Name | Type | Comments |
---|---|---|
eicData | Array | [read-only] |
range | Object | [read-only] |
totalArea | Number | [read-only] |
valid | Boolean | [read-only] |
Name | Type | Comments |
---|---|---|
absErr | Number | |
dbe | Number | |
fitness | Number | |
formula | String | |
mass | Number | |
mDaErr | Number | |
ppmErr | Number |
Name | Type | Comments |
---|---|---|
adduct | String | |
adductCharge | Number | |
chargeState | Number | |
dbe | Object | |
electronMode | String | |
elements | Array | |
eqAdduct | String | [read-only] |
eqLoss | String | [read-only] |
fitnessTheshold | Number | |
maxResults | Number | |
tolerance | 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;
Valid values: {"All", "Even", "Odd"}
// 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;
Name | Output | Parameters |
---|---|---|
setAdductOrLoss | String aFormula, String aType |
-
-
Valid values: {"adduct", "loss"}
Name | Type | Comments |
---|---|---|
relativeSettings | MassElCompSettings | |
results | Array | [read-only] |
settings | MassElCompSettings |
relativeSettings : MassElCompSettings
settings : MassElCompSettings
Name | Type | Comments |
---|---|---|
max | Number | |
min | Number | |
symbol | String |
Name | Type | Comments |
---|---|---|
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] |
analyzerType : MassItem.MSAnalyzer [read-only]
msmsType : MassItem.FunctionMSMSType [read-only]
msType : MassItem.FunctionMSType [read-only]
polarity : MassItem.FunctionPolarity [read-only]
Name | Type | Comments |
---|---|---|
count | Number | [read-only] |
Name | Output | Parameters |
---|---|---|
getItem | MassFunctionInfo | Number aIndex |
getItem (Number aIndex) : MassFunctionInfo
-
Name | Type | Comments |
---|---|---|
functions | MassFunctionsInfo | [read-only] |
index | Number | [read-only] |
name | String | [read-only] |
traces | MassTracesInfo | [read-only] |
functions : MassFunctionsInfo [read-only]
traces : MassTracesInfo [read-only]
Name | Type | Comments |
---|---|---|
count | Number | [read-only] |
Name | Output | Parameters |
---|---|---|
getItem | MassInjectionInfo | Number aIndex |
getItem (Number aIndex) : MassInjectionInfo
-
Name | Type | Values |
---|---|---|
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 |
Name | Type | Comments |
---|---|---|
appendSelected | Boolean | |
automaticTraceAlignmentParameters | AutoTraceAlignmentParams | [read-only] |
chargeStateDeconvolutionSettings | MassChargeStateDeconvolutionSettings | [read-only] |
customRunTime | Object | |
String | [read-only] [deprecated] | |
datasets | Array | [read-only] |
datasetsInfo | Array | [read-only] |
deconvOnSelect | Boolean | |
elementalComp | MassElemComposition | [read-only] |
hasFullDataset | Boolean | [read-only] |
MassItemInfo | [read-only] [deprecated] | |
layoutProperties | MassLayoutProperties | [read-only] |
molMatch | MassMolMatch | [read-only] |
Object | [read-only] [deprecated] | |
params | MassItemParameters | [read-only] |
plotsCount | Number | [read-only] |
selectionMode | MassItem.SpectrumSelMode | |
spectrumSelectionTarget | String |
automaticTraceAlignmentParameters : AutoTraceAlignmentParams [read-only]
chargeStateDeconvolutionSettings : MassChargeStateDeconvolutionSettings [read-only]
See also: MassItemInfo
elementalComp : MassElemComposition [read-only]
See also: MassPlugin.fetchFullDataset, MassPlugin.releaseFullDataset
info : MassItemInfo [read-only] [deprecated]
layoutProperties : MassLayoutProperties [read-only]
molMatch : MassMolMatch [read-only]
params : MassItemParameters [read-only]
selectionMode : MassItem.SpectrumSelMode
msItem.selectionMode = MassItem.SpectrumSelMode.Peak
See also: MassItem.selectSpectra, MassItemPlot.id
MassItem (MassItem aItem)
Name | Output | Parameters |
---|---|---|
activeFunction | Number | Number aInjectionIndex, [String aDatasetId] |
alignForBackgroundSubtraction | Object | MassItem aBackgroundMassItem, Number aForeInjectionIndex, Number aForeFunctionIndex, Number aBackInjectionIndex, Number aBackFunctionIndex, Array aReferenceIons, [String aAdduct], [String aLoss] |
alignTracesRT | Boolean | Number aOldRT, Number aNewRT, Number aPlotIndex |
alignTracesRT | Boolean | Number aOldRT, Number aNewRT, String aPlotId |
alignTracesRT | Boolean | Array aOldRTs, Array aNewRTs, Number aPlotIndex |
alignTracesRT | Boolean | Array aOldRTs, Array aNewRTs, String aPlotId |
appendDataset | String aDatasetIdOrFile | |
applyAutomaticTraceAlignment | ||
applyMSBackgroundSubtraction | Boolean | MassItem aBackgroundMassItem, Number aForeInjectionIndex, Number aForeFunctionIndex, Number aBackInjectionIndex, Number aBackFunctionIndex, [Object aRTIndex] |
applyUVBackgroundSubtraction | Boolean | MassItem aBackgroundMassItem, Number aForeInjectionIndex, Number aBackInjectionIndex, [Object aRTIndex] |
assign | String | String aMoleculeDataID, Object aFeature, [String aPlotId] |
assignments | Array | [String aPlotId] |
calculatePeakPurity | Object | String aPlotId, Number aFromRT, [Number aToRT] |
chargeStateDeconvolution | MassItemPlot | [String aPlotID] |
clearMSBackgroundSubtraction | Number aInjectionIndex, Number aFunctionIndex | |
clearPeakPurity | [String aPlotId] | |
clearUVBackgroundSubtraction | Number aInjectionIndex | |
correctTraceBaseline | Object aSettings, [String aPlotId] | |
deleteOverlaidPlot | String aOverlaidPlotId, [String aPlotId] | |
deletePlot | Boolean | Number aPlotIndex |
deletePlot | Boolean | String aPlotId |
dumpChromatogramMSSpectraToCSV | String aOutFilename, [String aPlotId] | |
dumpChromatogramUVSpectraToCSV | String aOutFilename, [String aPlotId] | |
extractOverlaidPlot | String aOverlaidPlotId, [String aPlotId] | |
findragmentIonSpectrum | Boolean | String aPlotId |
findragmentIonSpectrum | Boolean | Number aPlotIndex |
hidePlot | Boolean | Number aPlotIndex |
hidePlot | Boolean | String aPlotId |
movePlot | Boolean | Number aSrcPlotIndex, Number aDstPlotIndex |
movePlot | Boolean | Number aSrcPlotId, Number aDstPlotId |
newChromatogram | Boolean | Object aChromDef, [String aDatasetId] |
overlayPlots | Array aPlotIds, [String aPlotId] | |
plot | MassItemPlot | [Number aPlotIndex] |
plot | MassItemPlot | [String aPlotID] |
plotByType | MassItemPlot | MassItem.DataTypes aType |
removeAssignments | [Array aIdsList] | |
removeDataset | String aDatasetId | |
selectMolMatchResult | Boolean | Number aIndex |
selectSpectra | Boolean | MassItemPlot aChromPlot, Number aRT, [Boolean aSubtract = false] |
selectSpectra | Boolean | MassItemPlot aChromPlot, Number aStartRT, Number aEndRT, [Boolean aSubtract = false] |
selectUVSpectra | Boolean | MassItemPlot aChromPlot, Number aRT |
selectUVSpectra | Boolean | MassItemPlot aUVChromPlot, Number aStartRT, Number aEndRT |
setActiveFunction | Boolean | Number aInjectionIndex, Number aFunctionIndex, [String aDatasetId] |
setActivePlot | Boolean | [Number aPlotIndex] |
setActivePlot | Boolean | [String aPlotID] |
setAssignmentLabel | String aAssignmentId, String aLabel | |
setOverlaidPlotCustomColor | String aOverlaidPlotId, String aColor, [String aPlotId] | |
showPlot | Boolean | Number aPlotIndex |
showPlot | Boolean | String aPlotId |
-
-
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
-
-
-
-
-
-
-
-
-
-
-
-
-
applyMSBackgroundSubtraction (MassItem aBackgroundMassItem, Number aForeInjectionIndex, Number aForeFunctionIndex, Number aBackInjectionIndex, Number aBackFunctionIndex, [Object aRTIndex]) : Boolean
-
-
-
-
-
-
// 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
-
-
-
-
See also: Molecule.moleculeId, PageItem.dataId
-
{ "peakIndex" : 1 }or a RT value:
{ "rt": 2.5 }or a RT range:
{ "fromRT": 2.0, "toRT": 2.5 }or both:
{ "fromRT": 2.0, "toRT": 2.5, "rt": 2.2 }
-
{ "Uuid" : "{896e1053-c19d-4647-afbf-a2fdbf2a7e26}", "FromRT" : 2.0, "RT" : 2.2, "ToRT" : 2.4, "MolUuid" : "{b0459a5c-c90c-4b80-a3f3-5a596a5d8e1e}", "Origin" : { "DatasetUuid" : "{0e4f5003-7813-4aad-965e-7816860827be}", "InjectionIndex" : 0, "FunctionIndex" : 0, "TraceIndex" : -1 }, "Features": 0, "Label" : "" }
-
-
-
-
-
See also: MassItemplot.id
See also: MassItemplot.appendSelected
-
-
-
-
-
{ "Filter" : -1, "Lambda" : -1 }
See also: MassItemPlot.appliedBCSettings
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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;
// Open TIC for function 0 of injection 0
msItem.newChromatogram(parm1);
//method2:
var parm2 = new Object();
parm2.injectionIndex = 0;
parm2.functionIndex = 0;
parm2.type = "TIC";
// Open 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";
// Open 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;
// Following two parameters are optional.
// If not specifed current merge tolerance will be used.
parm4.tolerance = 10.0;
parm4.units = "ppm" // 'Da', 'ppm'. If not specified Da are assumed
// Open EIC for function 0 of injection 0
// for m/z value 20.0 with a 10 ppm tolerance
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;
// Open EIC 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);
// Open a chromatogram for a list of masses
var parm9 = new Object();
parm9.injectionIndex = 0;
parm9.functionIndex = 0;
parm9.type = "Mass";
parm9.masses = [20.0, 25.0];
// Following two parameters are optional.
// If not specifed current merge tolerance will be used.
parm9.tolerance = 10.0;
parm9.units = "ppm" // 'Da', 'ppm'. If not specified Da are assumed
// Open EIC for function 0 of injection 0
// for m/z values 20.0 and 25.0 with a 10 ppm tolerance
msItem.newChromatogram(parm9);
// Open a chromatogram for a list of ranges
var parm10 = new Object();
parm10.injectionIndex = 0;
parm10.functionIndex = 0;
parm10.type = "Mass";
parm10.mass_ranges = [{"from": 20.0, "to":25.0}, {"from": 40.0, "to":45.0}];
// Open EIC for function 0 of injection 0
// for m/z ranges [20.0, 25.0] and [40.0, 45.0]
msItem.newChromatogram(parm10);
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
-
-
-
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
-
-
-
-
-
-
-
See also: plotsCount
-
See also: MassItemplot.id
-
-
-
-
Name | Type | Comments |
---|---|---|
injections | MassInjectionsInfo | [read-only] |
valid | Boolean | [read-only] |
injections : MassInjectionsInfo [read-only]
Name | Type | Comments |
---|---|---|
parameters | Object | [read-only] |
Name | Output | Parameters |
---|---|---|
getParameter | Variant | String aMeaning |
parameterMeaning | String | String aName |
parameterName | String | String aMeaning |
setParameter | String aMeaning, Variant aValue, [Boolean aForce = False] |
-
-
-
Name | Type | Comments |
---|---|---|
appliedBCSettings | Object | |
chromatogramDefinition | Object | [read-only] |
Object | [read-only] [deprecated] | |
MassItem.ChromatogramType | [read-only] [deprecated] | |
dataPoints | Array | [read-only] |
description | String | [read-only] |
fullScale | Object | [read-only] |
functionIndex | Number | [read-only] |
id | String | [read-only] |
injectionIndex | Number | [read-only] |
Number | [deprecated] | |
overlaidChromatogramUuids | Array | |
peakDetectionSettings | Object | |
peakPurityOptions | MassChromPeakPurityOptions | |
peakPurityResult | MassChromPeakPurityResult | [read-only] |
peaks | Array | [read-only] |
pointsCount | Number | [read-only] |
properties | MassPlotProperties | [read-only] |
scale | Object | [read-only] |
specMode | String | |
times | Object | [read-only] |
traceIndex | Number | [read-only] |
type | MassItem.DataTypes | [read-only] |
visible | Boolean | [read-only] |
See also: MassItem.correctTraceBaseline
See also: MassItem.newChromatogram
See also: chromatogramDefinition
chromatogramType : MassItem.ChromatogramType [read-only] [deprecated]
See also: chromatogramDefinition
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 + ")");
}
}
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 + "]");
}
}
See also: MassFunctionsInfo.getItem
See also: MassInjectionsInfo.getItem
NOTE: This method is only meaningfull for chromatogram plots.
Check the MassItemPlot's type property.
peakPurityOptions : MassChromPeakPurityOptions
peakPurityResult : MassChromPeakPurityResult [read-only]
properties : MassPlotProperties [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 + "]");
}
}
Valid values: {"deconvoluted", "default"}
See also: MassTracesInfo.getItem
type : MassItem.DataTypes [read-only]
Name | Output | Parameters |
---|---|---|
appendPeak | Boolean | Number aStartRT, Number aEndRT |
appendPeak | Boolean | Number aFrom, Number aTo, Number aThreshold |
clearPeaks | ||
detectPeaks | ||
fitIntensityToHeight | ||
modifyPeak | Boolean | Number aPeakIndex, Number aStartRT, Number aEndRT |
removePeak | Boolean | Number aPeakIndex |
removePeak | Boolean | Number aStartRT, Number aEndRT |
removePeak | Boolean | Number aFrom, Number aTo, Number aThreshold |
retentionTimeToScan | Number | Number aRT |
scanToRetentionTime | Number | Number aScan |
setPeakFillColor | Boolean | Number aPeakIndex, String aFillColor |
setPeakFillColor | Boolean | Number aStartRT, Number aEndRT, String aFillColor |
setPeakLabel | Boolean | Number aPeakIndex, String aLabel |
setPeakLabel | Boolean | Number aStartRT, Number aEndRT, String aLabel |
zoom | [String aScale], [Object aRange] |
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
-
NOTE: This method is only available for spectrum plots.
Check the MassItemPlot's type property.
-
-
-
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
-
-
NOTE: This method is only available for chromatogram or spectrum plots.
Check the MassItemPlot's type property.
-
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
-
NOTE: This method is only available for spectrum plots.
Check the MassItemPlot's type property.
-
-
-
-
-
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
-
NOTE: This method is only available for chromatogram plots.
Check the MassItemPlot's type property.
-
-
-
-
-
-
-
-
-
Valid values: {"horizontal", "horz", "vert", "vertical"}
-
Name | Type | Comments |
---|---|---|
dataTypes | Number | |
layout | MassLayoutProperties.LayoutTypes | |
order | Number | |
plotTypes | Number | |
polarity | MassLayoutProperties.Polarity |
layout : MassLayoutProperties.LayoutTypes
polarity : MassLayoutProperties.Polarity
Name | Type | Values |
---|---|---|
DataTypes | Number | AnyData, DADData, MassData, TracesData |
LayoutTypes | Number | GridHorizontal, GridVertical, Horizontal, Vertical |
PlotTypes | Number | AnyPlot, ChromatogramPlot, MassSpectrumPlot, UVSpectrumPlot |
Polarity | Number | AnyPol, MixedPol, NegativePol, PositivePol |
Name | Type | Comments |
---|---|---|
groups | Array | [read-only] |
layout | LayoutTypes |
layout : LayoutTypes
Name | Output | Parameters |
---|---|---|
addGroup | Number | Object aGroupDesc |
removeGroup | Number aIndex |
-
-
Name | Type | Comments |
---|---|---|
results | Array | [read-only] |
settings | MassMolMatchSettings |
settings : MassMolMatchSettings
Name | Type | Comments |
---|---|---|
adduct | String | [read-only] |
functionIndex | Number | [read-only] |
loss | String | [read-only] |
matched | Boolean | [read-only] |
matchedMz | Number | [read-only] |
moleculeId | String | [read-only] |
msDaError | Number | [read-only] |
msPpmError | Number | [read-only] |
polarity | MassItem.FunctionPolarity | [read-only] |
predictedMz | Number | [read-only] |
purity | Number | [read-only] |
retTime | Number | [read-only] |
scan | Number | [read-only] |
score | Number | [read-only] |
similarity | Number | [read-only] |
See also: MassFunctionsInfo.getItem, MassInjectionInfo.functions
matchedMz : Number [read-only]
msDaError : Number [read-only]
msPpmError : Number [read-only]
polarity : MassItem.FunctionPolarity [read-only]
See also: MassFunctionInfo.polarity
predictedMz : Number [read-only]
Name | Type | Comments |
---|---|---|
adductsNeg | Array | |
adductsPos | Array | |
averageSpectraWindow | Number | |
enableDimers | Boolean | |
ignorePrecursors | Boolean | |
maxChargeNeg | Number | |
maxChargePos | Number | |
maxMatchesPerMolecule | Number | |
maxMatchesPerSpectrum | Number | |
ms2SearchFor | String | |
msmsTolerance | Number | |
msTolerance | Number | |
scoreThreshold | Number | |
toleranceUnits | String |
Valid values: {0, 1, 2, 3, 4, 5}
Valid values: {"Fragments", "Ion"}
Valid values: {"Da", "Ppm"}
MassMolMatchSettings ()
Name | Type | Comments |
---|---|---|
center | Object | |
label | String |
Name | Type | Comments |
---|---|---|
defaultColor | String | |
elementsVisibility | String | |
font | Font | |
labelPosition | String | |
labelTemplate | String | |
marksVisible | Boolean | |
positionRatio | Number | |
useCompoundColor | Boolean | |
visible | Boolean |
Valid values: {"Both", "Labels", "Ranges"}
font : Font
Valid values: {"Above", "Below"}
Name | Type | Comments |
---|---|---|
horizontal | MassPlotAxisProps | |
vertical | MassPlotAxisProps |
horizontal : MassPlotAxisProps
vertical : MassPlotAxisProps
Name | Type | Comments |
---|---|---|
units | String |
Valid values: {"AbsIntensity", "Abundance"}
Name | Type | Comments |
---|---|---|
color | String | |
isBoxVisible | Boolean | |
opacity | Number |
Valid values: {"#RRGGBB", "Color Keywords"}
Name | Type | Comments |
---|---|---|
colorMode |
Valid values: {Brightness, Custom, Hue, Opacity, Saturation, Sequence}
Name | Type | Comments |
---|---|---|
color | String | |
opacity | Number | |
visible | Boolean |
Valid values: {"#RRGGBB", "Color Keywords"}
Name | Type | Comments |
---|---|---|
colorMode | String | |
highlight | MassPlotPeakPurityHldProps | |
visible | Boolean |
Valid values: {"Brightness", "Hue", "Opacity", "Saturation", "Sequence"}
highlight : MassPlotPeakPurityHldProps
assignments : MassPlotAssignmentProps
axes : MassPlotAxesProps
background : PlotBackgroundProps
chromOverlaid : MassPlotOverlaidProps
grid : PlotGridProps
highlight : MassPlotHighlightProps
line : Plot1DLineProps
peakPurity : MassPlotPeakPurityProps
peaks : PlotMassPeaksProps
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)
Name | Output | Parameters |
---|---|---|
activeItem | MassItem | |
changeDatasetFileName | Boolean | String aFileName, MassItem aMassItem, [String aDataseId] |
elementalComposition | Boolean | MassItem aMassItem, [Number aPlotIndex], Number aMZValue |
exportChromatograms | Array | MassItem aMassItem, [Number aPlotIndex] |
fetchFullDataset | MassItem aMassItem | |
loadParametersCustomization | Boolean | String aFileName, [String aFileFormat] |
moleculeMatch | Boolean | MassItem aMassItem |
moleculeMatch | Boolean | MassItem aMassItem, Array aFormula |
predict | MassItem | String aFormula, String aAdduct, String aLoss, Number aResolution, String aResolutionUnits |
relativeElementalComposition | Boolean | MassItem aMassItem, Number aMZDelta |
releaseFullDataset | MassItem aMassItem | |
showMoleculeMatchSettingsDialog | [Widget aParentWidget], [MassMolMatchSettings aSettingsObj] |
activeItem () : MassItem
-
-
-
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
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();
}
}
relativeElementalComposition (MassItem aMassItem, Number aMZDelta) : Boolean
-
releaseFullDataset (MassItem aMassItem)
See also: fetchFullDataset
showMoleculeMatchSettingsDialog ([Widget aParentWidget], [MassMolMatchSettings aSettingsObj])
-
-
Name | Type | Comments |
---|---|---|
index | Number | [read-only] |
name | String | [read-only] |
Name | Type | Comments |
---|---|---|
count | Number | [read-only] |
hasDAD | Boolean | [read-only] |
Name | Output | Parameters |
---|---|---|
getItem | MassTraceInfo | Number aIndex |
getItem (Number aIndex) : MassTraceInfo
-
Name | Type | Comments |
---|---|---|
exclusionRegions | MSChromPeakDetectionExclusionRegs | |
minAreaThreshold | Number | |
widPeaks | Bool |
exclusionRegions : MSChromPeakDetectionExclusionRegs
Name | Type | Comments |
---|---|---|
majorPeakMinAreaRatio | Number | |
peaks | MassVerifyPeakDetectionSettings | |
rtTolerance | Number | |
traces | MassVerifyTraceSettings |
peaks : MassVerifyPeakDetectionSettings
traces : MassVerifyTraceSettings
Name | Type | Comments |
---|---|---|
keywordsCLND | Array | |
keywordsELSD | Array | |
keywordsUV | Array | |
useCLND | Boolean | |
useELSD | Boolean | |
useUV | Boolean |
Menu ()
Name | Output | Parameters |
---|---|---|
addAction | Action | String aActionName, String aIconPath |
addSeparator |
-
-
var actionLeft, actionRight, dialog, iconPathLeft, iconPathRight, menu;
dialog = Application.loadUiFile("ricares:test17548.ui");
iconPathLeft = "ricares:arrow-left.png";
iconPathRight = "ricares:arrow-right.png";
function left() {
dialog.widgets.tbMenu.setIcon(iconPathLeft, 50, 50);
}
function right() {
dialog.widgets.tbMenu.setIcon(iconPathRight, 50, 50);
}
menu = new Menu();
actionLeft = menu.addAction("Left arrow icon", iconPathLeft);
menu.addSeparator();
actionRight = menu.addAction("Right arrow icon", iconPathRight);
actionLeft.triggered.connect(left);
actionRight.triggered.connect(right);
dialog.widgets.tbMenu.setMenu(menu);
Name | Type | Values |
---|---|---|
Buttons | Number | Abort, Apply, Cancel, Close, Discard, Help, Ignore, No, NoButton, NoToAll, Ok, Open, Reset, RestoreDefaults, Retry, Save, SaveAll, Yes, YesToAll |
Name | Output | Parameters |
---|---|---|
critical | Buttons | String aText, Buttons aButton1, Buttons aButton2, Buttons aButton3, String aTitle |
information | Buttons | String aText, Buttons aButton1, Buttons aButton2, Buttons aButton3, String aTitle |
question | Buttons | String aText, Buttons aButton1, Buttons aButton2, Buttons aButton3, String aTitle |
warning | Buttons | String aText, Buttons aButton1, Buttons aButton2, Buttons aButton3, String aTitle |
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
Name | Type | Comments |
---|---|---|
aliases | Array | |
atomCount | Number | [read-only] |
bondCount | Number | [read-only] |
description | String | |
label | String | |
moleculeId | String | [read-only] |
molName | String |
Molecule (Molecule aMolecule)
Name | Output | Parameters |
---|---|---|
addExplicitHydrogens | ||
aromaticAtoms | Array | |
atom | Atom | Number aIndex |
atoms | Array | |
averageMass | Number | |
bond | Bond | Number aIndex |
bonds | Array | |
calcPartialCharges | Array | |
canBeNeutralized | Boolean | |
canBeProtonated | Boolean | |
codeAtomACMC | Array | Number aIndex |
createIUPACName | String | Boolean aDoSetName = true, Boolean aConvertToHTML = false, Boolean aPasteToDocument = false |
detectAromaticAtoms | ||
detectCyclicBonds | ||
diastereotopicDistanceList | Array | |
distanceBetween | Number | Number atomFrom, Number atomTo |
generateInChi | String | |
generateSMILES | String | |
getConformers | Array | |
getMolfile | String | |
getParam | Variant | String aParamName |
getSDFData | Variant | String aSDFTagName |
graphicProperties | Object | |
isAromaticAtom | Boolean | Number aIndex |
isCyclicAtom | Boolean | Number aIndex |
isLabileProton | Boolean | Number aIndex |
makeStereodescriptorsString | String | |
molecularFormula | String | |
monoisotopicMass | Number | |
neutralizeMolecule | Boolean | |
nmrAssignments | Array | |
nmrPrediction | Array | String aNucleus, Boolean aGrouped |
normalizeExplicitHydrogensNumbering | ||
normalizeNumbering | ||
paramNames | Array | |
protonateMolecule | Boolean | |
protonateMoleculeList | Array | |
removeExplicitHydrogens | ||
sdfNames | Array | |
setGraphicProperties | Object | Object aProperties |
setNMRAssignments | Array aAtomNMRAssignmentDataArray | |
setNMRPrediction | Object | String aNucleus, Array aPredictionObjectArray, Boolean aFillImplicitH |
setSDFData | Variant | String aSDFTagName, String aValue |
symmetricalAtoms | Array | Number aIndex |
toString | String |
See also: detectAromaticAtoms, isAromaticAtom
-
createIUPACName (Boolean aDoSetName = true, Boolean aConvertToHTML = false, Boolean aPasteToDocument = false) : String
-
-
See also: aromaticAtoms, isAromaticAtom
See also: isCyclicAtom
-
See also: paramNames
-
See also: sdfNames, setSDFData
See also: aromaticAtoms, detectAromaticAtoms
See also: detectCyclicBonds
See also: AtomNMRAssignmentData
See also: AtomNMRPredictionData
-
See also: AtomNMRAssignmentData
-
-
See also: AtomNMRPredictionData
-
-
See also: getSDFData, sdfNames
See also: detectAromaticAtoms
MoleculePlugin (MoleculePlugin aMoleculePlugin)
Name | Output | Parameters |
---|---|---|
activeMolecule | Molecule | |
containsMolecule | Boolean | PageItem aMolecule1, PageItem aMolecule2 |
create3DConformersList | Boolean | String aMolDataId, Boolean aGMMXFlag |
getSFBestSolutionData | Object | String aMoleculeID |
importConformers | Number | String aFileName, String aMolDataId |
importMolfile | String | String aMolfileString |
importSMILES | String | String aSMILESString |
parseMolecularFormula | Object | String aFormula |
sameAssignmentsData | Boolean | PageItem aMolecule1, PageItem aMolecule2 |
activeMolecule () : Molecule
-
-
getSFBestSolutionData (String aMoleculeID) : 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
Name | Type | Values |
---|---|---|
BehaviorFlags | Number | HeightThresholdBehavior, HideCrosshairsBehavior, NormalBehavior, OneClickBehavior |
SelectionModes | Number | SelModeHorizontal, SelModeNormal, SelModeVertical |
Name | Type | Comments |
---|---|---|
flags | Number | |
uuid | String | [read-only] |
See also: MouseModeAction.BehaviorFlags
Name | Output | Parameters |
---|---|---|
onAction | Boolean | PageItem aItem, Object aScaleRange |
onLeftBtnReleased | Boolean | PageItem aItem, Object aScalePoint |
wantsSetCursor | Object | PageItem aItem, Number aSelectionMode |
-
-
-
-
-
-
See also: MouseModeAction.SelectionModes
Name | Type | Comments |
---|---|---|
after | Number | |
afterEnabled | Boolean | |
units | String | |
upTo | Number | |
upToEnabled | Boolean |
Valid values: {"Percentage", "Time"}
Name | Type | Comments |
---|---|---|
exclusionRegions | MSChromPeakDetectionExclusionRegs | |
minAreaThreshold | Number | |
sensitivity | Number | |
shoulderSensitivity | Number | |
smoothWindowSize | Number | |
widePeaks | Boolean |
exclusionRegions : MSChromPeakDetectionExclusionRegs
Name | Type | Values |
---|---|---|
PeakFlags | Number | UsedForIntegral, UsedForJCalc |
Name | Type | Comments |
---|---|---|
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] |
qGSDresidual | Number | [read-only] |
rangeMax | Number | [read-only] |
rangeMin | Number | [read-only] |
rmsWidth | Number | [read-only] |
skewness | Number | [read-only] |
uuid | String | [read-only] |
See also: Peak.id
Multiplet (Multiplet aMultiplet)
Multiplet (SpectrumRegion aSpectrumRegion, String aCategory)
Multiplet (NMRSpectrum aSpectrum, SpectrumRegion aSpectrumRegion)
Multiplet (Array aPeakIds, NMRSpectrum aSpectrum)
-
Name | Output | Parameters |
---|---|---|
clearPeakFlag | String aPeakUuid, Multiplet.PeakFlags aPeakFlag | |
integralValue | Number | Number aNormFactor |
jList | JList | Boolean aReduced |
peakFlags | Number | String aPeakUuid |
removePeak | Boolean | String aPeakUuid |
setJList | JList aJList | |
setPeakFlag | String aPeakUuid, Multiplet.PeakFlags aPeakFlag | |
toString | String |
clearPeakFlag (String aPeakUuid, Multiplet.PeakFlags aPeakFlag)
-
-
jList (Boolean aReduced) : JList
-
setJList (JList aJList)
setPeakFlag (String aPeakUuid, Multiplet.PeakFlags aPeakFlag)
-
-
Name | Type | Comments |
---|---|---|
count | Number |
Multiplets ()
Multiplets (Multiplets aMultipletList)
Name | Output | Parameters |
---|---|---|
append | Multiplet aMultiplet | |
at | Multiplet | Number aIndex |
clear | ||
findMultiplet | Multiplet | String aId |
normalizeWithNuclideCount | NMRSpectrum aSpc | |
removeAt | Number aIndex | |
sort | Boolean bAscending | |
toString | String |
append (Multiplet aMultiplet)
at (Number aIndex) : Multiplet
MultipletTable (MultipletTable aMultipletTable)
Name | Output | Parameters |
---|---|---|
spectrum | NMRSpectrum | |
toString | String |
spectrum () : NMRSpectrum
See also: NetworkReply, NetworkRequest
Name | Type | Values |
---|---|---|
NetworkAccessibility | Number | Accessible, NotAccessible, UnknownAccessibility |
Operation | Number | CustomOperation, DeleteOperation, GetOperation, HeadOperation, PostOperation, PutOperation, UnknownOperation |
Name | Type | Comments |
---|---|---|
networkAccesible |
Returns one of the NetworkAccessibility values
NetworkAccessManager ()
Name | Output | Parameters |
---|---|---|
get | NetworkReply | NetworkRequest request |
head | NetworkReply | NetworkRequest request |
post | NetworkReply | NetworkRequest request, data |
put | NetworkReply | NetworkRequest request, data |
-
-
See also: NetworkAccessManager, NetworkRequest
Name | Type | Values |
---|---|---|
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 |
Name | Type | Comments |
---|---|---|
bytesAvailable | Number | |
errorString | String | |
isFinished | Boolean | |
isRunning | Boolean | |
manager | NetworkAccessManager | |
networkError | NetworkError | |
operation | Operation | |
readBufferSize | Number | |
request | NetworkRequest |
See also: NetworkError
See also: Operation
See also: NetworkError
Name | Output | Parameters |
---|---|---|
abort | ||
attribute | Variant | Number aAttr |
close | ||
hasRawHeader | Boolean | String aHeader |
header | Variant | |
markForDeletion | ||
rawHeader | String | String aHeader |
read | Number aMaxLength | |
readAll | String | |
readLine | Number aMaxLength |
-
See also: NetworkAccessManager, NetworkReply
Name | Type | Values |
---|---|---|
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 |
Name | Type | Comments |
---|---|---|
priority | Priority | |
url | String |
See also: Priority
Name | Output | Parameters |
---|---|---|
attribute | Variant | Number aAttr, Variant aDefValue |
hasRawHeader | Boolean | String aHeader |
header | Variant | |
rawHeader | String | String aHeader |
rawHeaderList | Array | |
setAttribute | Number aAttr, Variant aValue | |
setHeader | Number aHeader, Variant aValue | |
setRawHeader | String aHeader, String aValue |
-
-
-
Name | Type | Comments |
---|---|---|
lastError | String | |
spectraList | Array |
NMRArithmetic ()
Name | Output | Parameters |
---|---|---|
add | Boolean | NMRSpectrum aFirstSpc, [Number aFirstSpcIndex], NMRSpectrum aSecondSpc, [Number aSecondSpcIndex], NMRSpectrum aResultSpc, [Number aResultSpcIndex] |
mul | Boolean | NMRSpectrum aFirstSpc, [Number aFirstSpcIndex], NMRSpectrum aSecondSpc, [Number aSecondSpcIndex], NMRSpectrum aResultSpc, [Number aResultSpcIndex] |
runFormula | Boolean | String aFormula, aResultId |
scale | Boolean | Number aNumber, NMRSpectrum aSpc, [Number aSpcIndex], NMRSpectrum aResultSpc, [Number aResultSpcIndex] |
sub | Boolean | NMRSpectrum aFirstSpc, [Number aFirstSpcIndex], NMRSpectrum aSecondSpc, [Number aSecondSpcIndex], NMRSpectrum aResultSpc, [Number aResultSpcIndex] |
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
-
-
-
-
-
-
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
-
-
-
-
NMRAssignments (Molecule aMolecule)
Name | Output | Parameters |
---|---|---|
ambigJs | Array | Number aAtomNumber, Number aHIndex |
chemShift | Object | Number aAtomNumber, Number aIndex |
chemShiftArr | Object | Number aAtomNumber, Number aIndex |
correlatedAtoms | Array | Number aAtomIndex, Number aIndex, String aCorrelationType |
correlations | Array | |
hasAssignments | Boolean | String aElement |
hasCouplings | Boolean | String aType |
jConts | Object | Number aAtomNumber, Number aIndex |
multipletAssignment | String | String aMultipletId |
NOEs | Object | |
notEqHs | Array | Number aAtomIndex |
peakAssignment | String | String aPeakId, String aNucleus |
RDCs | Object | |
realAssignedExp | String | String aType |
removeChemShift | Number aAtomNumber, Number aIndex | |
setAmbigJs | Number aAtomNumber, Number aHIndex, Arrays aValues | |
setChemShift | Number aAtomNumber, Number aIndex, Number aFrom, Number aTo, Number aShift | |
setJConts | Number aAtomNumber, Number aHIndex, Number aValue | |
setNOEs | ||
setRDCs |
-
-
Valid values: {0, 1, 2, 3}
-
-
Valid values: {0, 1, 2, 3}
-
Valid values: {0, 1, 2, 3}
-
Valid values: {0, 1, 2, 3}
-
-
-
Valid values: {"J", "NOE", "RDC"}
-
-
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'}
-
-
-
-
-
-
Valid values: {0, 1, 2, 3}
-
-
Valid values: {0, 1, 2, 3}
-
Valid values: {0, 1, 2, 3}
-
-
-
-
-
Valid values: {0, 1, 2, 3}
Name | Type | Values |
---|---|---|
IntegralTransformType | Number | ChebyshevPolynomial, EuclideanDistance |
Name | Output | Parameters |
---|---|---|
calcEffPeaks | Number | Array aSticksArray, Number aLinewidth |
calcIntegralTransforms | Array | NMRSpectrum aSpectrum, Number aMinPpm, Number aMaxPpm, Number aCount, [IntegralTransformType aIntegralTransformType = ChebyshevPolynomial], [Number aMaxOrder = 10], [Array aExclusionRegions] |
calcQuantification | Array | NMRSpectrum aMixtureSpectrum, Array aCompoundSpectra, Array aNumberOfProtons, [Array aInitialProportions], [Array aExclusionRegions], [IntegralTransformType aIntegralTransformType = ChebyshevPolynomial], [Number aMaxOrder = 10], [Boolean aCalcVarianceAnalysis = false] |
calcShapeMoments | Object | Array aSticksArray, Number aLinewidth |
checkSticksPatternCompatibility | Boolean | Array aRefSticks, Array aSticks, Number aLineWidth, Number aAreaRatio |
compareShapeMoments | Object | Object aShapeMomentsA, Object aShapeMomentsB, [Object aSettings] |
createSticksList | Array | NMRSpectrum aNMRItem, Array aPeakUuids |
createSticksList | Array | Array aCouplings, Number aCentroid, Number aLinewidth, [Number aNormValue] |
createSticksList | Array | NMRSpectrum aNMRItem |
findSticksMultiplet | Array | Array aRefSticks, Array aSticks, [Object aSettings] |
findSticksPattern | Array | Array aRefSticks, Array aSticks, [Object aSettings] |
lineWidtEstimateFromPeaks | Object | NMRSpectrum aNMRItem |
patternIsolationFactor | Number | Array aRefSticks, Array aSticks, Object aLineWidth |
stickListPatternSimilarity | Number | Array aFirstSticks, Array aSecondSticks, [Number aShiftTol] |
toMainStickList | Object | Array aSticksArray, Number aLinewidth |
-
-
See also: NMRForensics.createSticksList
NMRForensics.calcIntegralTransforms (NMRSpectrum aSpectrum, Number aMinPpm, Number aMaxPpm, Number aCount, [IntegralTransformType aIntegralTransformType = ChebyshevPolynomial], [Number aMaxOrder = 10], [Array aExclusionRegions]) : Array
-
-
-
-
-
-
-
var count, exclRegions, its, itType, maxOrder, maxPpm, minPpm, spec;
spec = nmr.activeSpectrum();
minPpm = -1.0;
maxPpm = 10.0;
count = 65536;
itType = NMRForensics.IntegralTransformType.ChebyshevPolynomial;
maxOrder = 15;
exclRegions = [[4.74, 4.89], [-0.006, 0.006]];
its = NMRForensics.calcIntegralTransforms(spec, minPpm, maxPpm, count, itType, maxOrder, exclRegions);
print(its);
NMRForensics.calcQuantification (NMRSpectrum aMixtureSpectrum, Array aCompoundSpectra, Array aNumberOfProtons, [Array aInitialProportions], [Array aExclusionRegions], [IntegralTransformType aIntegralTransformType = ChebyshevPolynomial], [Number aMaxOrder = 10], [Boolean aCalcVarianceAnalysis = false]) : Array
-
-
-
-
-
-
-
-
var i, compoundSpectra, document, exclusionRegions, initialProportion, mixtureSpectrum, result, spectraCount;
document = mainWindow.activeDocument;
spectraCount = document.itemCount("NMR Spectrum");
mixtureSpectrum = document.item(0, "NMR Spectrum");
compoundSpectra = [];
initialProportion = [];
for (i = 1; i < spectraCount; ++i) {
compoundSpectra.push(document.item(i, "NMR Spectrum"));
initialProportion.push(1.0);
}
numberOfProtons = [10, 7, 4];
exclusionRegions = [[4.75, 4.88], [0.0151, 0.0172]];
result = NMRForensics.calcQuantification(mixtureSpectrum, compoundSpectra, numberOfProtons, initialProportion, exclusionRegions, NMRForensics.IntegralTransformType.ChebyshevPolynomial, 10, true);
print(result);
-
-
See also: NMRForensics.createSticksList
NMRForensics.checkSticksPatternCompatibility (Array aRefSticks, Array aSticks, Number aLineWidth, Number aAreaRatio) : Boolean
-
-
-
-
NMRForensics.compareShapeMoments (Object aShapeMomentsA, Object aShapeMomentsB, [Object aSettings]) : Object
-
-
-
See also: NMRForensics.calcShapeMoments
NMRForensics.createSticksList (NMRSpectrum aNMRItem, Array aPeakUuids) : Array
-
-
See also: Peak.id
NMRForensics.createSticksList (Array aCouplings, Number aCentroid, Number aLinewidth, [Number aNormValue]) : Array
-
-
-
-
NMRForensics.createSticksList (NMRSpectrum aNMRItem) : Array
-
-
-
-
-
-
-
NMRForensics.lineWidtEstimateFromPeaks (NMRSpectrum aNMRItem) : Object
-
-
-
-
NMRForensics.stickListPatternSimilarity (Array aFirstSticks, Array aSecondSticks, [Number aShiftTol]) : Number
-
-
-
-
-
See also: NMRForensics.createSticksList
Name | Type | Comments |
---|---|---|
centroidTolerance | Number | |
useCentroidMetric | Boolean |
NMRPeaksPatternFinder ()
Name | Output | Parameters |
---|---|---|
createReference | Object | NMRSpectrum aNMRSpectrum, [Number aSpectrumIndex], Array aPeakIds |
createSpinSimReference | Object | Molecule aMolItem, Number aAtomIndex, [Number aHIndex], NMRSpectrum aNMRSpectrum, [Number aResolution] |
findReference | Object | Object aReference, NMRSpectrum aNMRSpectrum, [Number aSpectrumIndex], Array aPeakIds |
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
Name | Type | Values |
---|---|---|
SyntheticSpectrumMode | Number | Proportional, Sticks, Synthetic, Uniform |
NMRPlugin (NMRPlugin aNMRPlugin)
Name | Output | Parameters |
---|---|---|
activeSpectrum | NMRSpectrum | |
autoAssign | Boolean | NMRSpectrum aNMRItem, PageItem aMolItem |
beginFidModification | NMRSpectrum aSpectrum | |
beginModification | NMRSpectrum aSpectrum | |
calculate1DSpectraDistance | Number | NMRSpectrum aSpectrumA, NMRSpectrum aSpectrumB |
calculate1DSpectraDistance | Number | NMRSpectrum aSpectrumA, Number aIndexA, NMRSpectrum aSpectrumB, Number aIndexB |
createArrayedItem | NMRSpectrum | Array aSpectra, [Boolean aStacked] |
endFidModification | NMRSpectrum aSpectrum | |
endModification | NMRSpectrum aSpectrum | |
extractSpectrumFromArrayedItem | NMRSpectrum | NMRSpectrum aSpectrum, [Number aIndex] |
isValid | Boolean | |
loadParametersCustomization | Boolean | String aFileName, [String aFileFormat] |
multipletTable | MultipletTable | |
numberOfNuclidesTest | NNTestSolution | Array aIntegrals, Number aCountFrom, [Number aCountTo] |
peakTable | PeakTable | |
process | String aProcFile | |
processSpectrum | NMRSpectrum aSpectrum, String aProcFile | |
syntheticAssignmentsSpectrum | Object | String aXML |
syntheticPeaksSpectrum | NMRSpectrum | NMRSpectrum aNMRItem, Number aIncPeakFlags, Number aExcPeakFlags, Number aMode, [Number aModeParm1], [Number aModeParm2] |
syntheticPeaksSpectrum | NMRSpectrum | NMRSpectrum aNMRItem, Array aPeakIdsArray, Number aMode, [Number aModeParm1], [Number aModeParm2] |
toString | String |
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
-
-
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
-
See also: NMRProcessing, NMRSpectrum.proc, NMRSpectrum.process
processSpectrum (NMRSpectrum aSpectrum, String aProcFile)
See also: NMRProcessing, NMRSpectrum.proc, NMRSpectrum.process
-
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
-
-
Name | Type | Comments |
---|---|---|
frequency | Number | |
fromPPM | Number | |
lineWidth | Number | |
nucleus | String | |
size | Number | |
solvent | Number | |
toPPM | Number |
NMRPredictorParams ()
Name | Type | Comments |
---|---|---|
silentMode | Boolean |
NMRPredictorPlugin (NMRPredictorPlugin aNMRPredictorPlugin)
Name | Output | Parameters |
---|---|---|
availablePredictors | Array | |
predict | String | Molecule aMolecule, String aNucleus |
predictHSQC | String | Molecule aMolecule |
predictMolecule | Object | File aFile, String aNucleus, Array aPredArray, String aSolvent |
samePredictionsData | Boolean | PageItem aMolecule1, PageItem aMolecule2 |
spinSimulationDataText | String | Molecule aMolecule, String aNucleus, Number aPrecision |
updateUserDB | String | String aNucleus, String aSDFilePath, String aDBLetter, String aSolvent |
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) : Object
-
spinSimulationDataText (Molecule aMolecule, String aNucleus, Number aPrecision) : 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
}
Name | Type | Values |
---|---|---|
ProcStop | Number | Default, FT1, FT2, OriginalFID, ProcessedFID |
Name | Type | Comments |
---|---|---|
isValid | Boolean | |
stopProc | Number |
See also: NMRProcessing.ProcStop
NMRProcessing (NMRProcessing aNMRProcessing)
var spectrum = nmr.activeSpectrum();
var proc = new NMRProcessing(spectrum.proc);
NMRProcessing (String aTemplateFile)
var proc = new NMRProcessing("C:/test/aTemplate.mnp");
Name | Output | Parameters |
---|---|---|
getParameter | Variant | String aArgumentString |
open | Boolean | aFilename |
save | Boolean | aFilename |
setApplyNothing | ||
setParameter | Variant | String aArgumentString, Variant aValue |
toString | String |
-
-
-
Name | Type | Comments |
---|---|---|
documentId | Document | |
fitModels | Array | |
graphId | Graph | |
responseFactor | GraphResponseFactor | |
specId | NMRSpectrum | |
stackedView | Boolean | |
yModels | Array |
documentId : Document
See also: GraphFitModel
graphId : Graph
See also: GraphResponseFactor
specId : NMRSpectrum
See also: GraphYModel
Name | Output | Parameters |
---|---|---|
finish | ||
fitModelsFromXML | Boolean | String aXML |
fromXML | Boolean | String aXML |
graphItem | Graph | |
init | ||
nmrItem | NMRSpectrum | |
onNewData | Boolean | NMRSpectrum aSpc |
setFitModels | Boolean | Array aFitModelsArray |
yModelsFromXML | Boolean | String aXML |
onNewData (NMRSpectrum aSpc) : Boolean
-
Name | Type | Values |
---|---|---|
ArrayedDataType | Number | Diffusion, Kinetics, None, Relaxation, Unknown |
ArrayedMode | Number | Active, Bitmap, Queued, Stacked, Superimposed, WhiteWashed |
Name | Type | Comments |
---|---|---|
arrayedData | Array | |
arrayedMode | ArrayedMode | |
blindRegions | Array of BlindRegion | |
className | String | |
comment | String | |
curSpecIndex | Number | |
dimCount | Number | [read-only] |
experimentType | String | |
formattedTitle | String | [read-only] |
isReal | Boolean | [read-only] |
originalFormat | String | [read-only] |
proc | NMRProcessing | |
realMax | Number | [read-only] |
realMin | Number | [read-only] |
solvent | String | |
specCount | Number | [read-only] |
spectra | Array | |
subtype | String | |
temperature | Number | [read-only] |
threshold | Number | |
title | String | [read-only] |
See also: NMRSpectrum.ArrayedMode
See also: BlindRegion
Valid values: {"1D", "1D-APT", "1D-CPMG", "1D-DEPT-135", "1D-DEPT-45", "1D-DEPT-90", "1D-EDITED-CH", "1D-EDITED-CH2", "1D-EDITED-CH3", "1D-EDITED-CHn", "1D-EDITED-CQ", "1D-HAHN", "1D-INEPT", "1D-INVREC", "1D-JMOD", "1D-LOWFIELD", "1D-NOESY", "1D-ROESY", "1D-TOCSY", "2D-ADEQUATE", "2D-COSY", "2D-DOSY", "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-ROSY", "2D-TOCSY"}
See also: NMRSpectrum.title
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
See also: Experiment Type, Nucleus
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)
-
-
-
Name | Output | Parameters |
---|---|---|
align | Boolean | String aRefItemId, Number aRefSpc, Array aIndexArray |
alignRegions | Boolean | Object aObject |
appendSpectrum | NMRSpectrum aNMRSpectrum | |
assignPeakToMultiplet | String aMultipletUuid, String aPeakID | |
autoDetectNoiseRegions | Array | |
autoFitting | Boolean | Boolean aShowDialog |
autoScaleArrayed | Number aFromHorz, Number aToHorz, Number aFromVert, Number aToVert | |
calcPeaksPurity | Number | |
checkPeakVisibility | Boolean | Peaks aPeak |
corrPearson | Number | NMRSpectrum aSpectrum |
count | Number | Number aDim |
count | Number | |
deselectSpectra | Array aSpecIndexes | |
exportFittingCurves | Boolean | String aFilePath, Object aOptions, [FitRegion aFitRegion] |
exportFittingOptions | Boolean | String aFilePath |
extractInnerTrace | NMRSpectrum | String aOrientation, String Number aTrace |
fidCount | Number | |
fidCount | Number | Number aDim |
fidImag | Number | Array | Number | String | Object aIndex |
fidImag | Number | Array | Number | String | Object aRow, Number | String | Object aCol |
fidIsFID | Boolean | |
fidReal | Number | Array | Number | String | Object aIndex |
fidReal | Number | Array | Number | String | Object aRow, Number | String | Object aCol |
fidSetImag | Boolean | Number | String | Object aIndex, Number | Array aValue |
fidSetImag | Boolean | Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue |
fidSetReal | Boolean | Number | String | Object aIndex, Number | Array aValue |
fidSetReal | Boolean | Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue |
fit | FitRegion | FitRegion aFitRegion, Boolean aShowDialog |
fitRegions | Array | |
fitToHeight | ||
fitToHighestCompound | ||
frequency | ||
frequency | Number aDim | |
getFullScaleLimits | Object | |
getNMRAssignedMolecules | Array | |
getNusSchema | Array | |
getParam | Variant | String aParamName, [Boolean aPrecision = false] |
getProperty | Variant | String aParam |
getScaleLimits | Object | |
gsdMultiplets | GSDMultiplets | |
gsdPeaks | GSDPeaks | |
hideSpectra | Array aSpecIndexes | |
horzZoom | Number aFrom, Number aTo, [String hUnits] | |
hz | Number | |
hz | Number | Number aDim |
imag | Number | Array | Number | String | Object aIndex |
imag | Number | Array | Number | String | Object aRow, Number | String | Object aCol |
importFittingOptions | Boolean | String aFilePath |
integrals | Integrals | |
isFID | Boolean | Number aDim |
isInBlindHorzRegion | Boolean | Number aXPos |
isInBlindVertRegion | Boolean | Number aYPos |
isInCutHorzRegion | Boolean | Number aXPos |
isInCutVertRegion | Boolean | Number aYPos |
isInHiddenHorzRanges | Boolean | Number aXPos |
isInHiddenVertRanges | Boolean | Number aYPos |
isReadOnlyParam | Boolean | String aParam |
isSpectrumSelected | Boolean | Number aSpecIndex |
isSpectrumVisible | Boolean | Number aSpecIndex |
isValid | Boolean | |
isValid | Boolean | Number aDim |
loadJeolProcList | String aFileName | |
multiplets | Multiplets | |
noiseFreeRegions | Array | minimumRegSizePPM |
nucleus | String | Boolean aHtml |
nucleus | String | Number aDim, Boolean aHtml |
paramNames | Array | |
peaks | Peaks | |
process | Boolean | [NMRProcessing aProc] |
processCurSpec | Boolean | [NMRProcessing aProc] |
proposePhase1D | Object | |
real | Number | Array | Number | String | Object aIndex |
real | Number | Array | Number | String | Object aRow, Number | String | Object aCol |
recalculateIntegrals | Object aParameters, [String aIntgUuid] | |
recalculateMultipletIntegrals | Object aParameters, [String aMultUuid] | |
reference | Number aDim, Number aOldShift, Number aNewShift, Boolean aAutoTune, Number aAutoTuneTolerance, String aAnnotation, Boolean aAutoTuneAbsolute | |
removeSpectrum | Boolean | Number aSpecIndex |
restoreFIDParameters | ||
scaleToPage | Object | |
scaleWidth | Number | Number aDim |
scaleWidth | Number | |
selectSpectra | Array aSpecIndexes | |
setFitRegions | Array aArrayOfFitRegions | |
setHiddenRanges | Array of SpectrumRegion aHorzRanges, Array of SpectrumRegion aVertRanges | |
setImag | Boolean | Number | Array aIndex, Number | String | Object aValue |
setImag | Boolean | Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue |
setIntegrals | Integrals aIntegralsList | |
setMultiplets | Multiplets aMultipletList | |
setNusSchema | Array aSchema | |
setParam | String aParamName, Variant aValue | |
setPeaks | Peaks aPeakList | |
setProperty | String aParam, Variant aValue | |
setReal | Boolean | Number | String | Object aIndex, Number | Array aValue |
setReal | Boolean | Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue |
setTrace | NMRSpectrum aSpc, Boolean aHorz, [Number aId] | |
showSpectra | Array aSpecIndexes | |
solventName | String | Boolean aExtended |
toString | String | |
unitsToUnits | Number | String aFromUnits, String aToUnits, Number aValue, Number aDim |
updateMultiplet | [String aMultipletUuid] | |
updateTraces | ||
vertZoom | Number aFrom, Number aTo, [String vUnits] | |
zero | Number | Number aDim |
zero | Number | |
zoom | Number aHFrom, Number aHTo, Number aVFrom, Number aVTo, [String hUnits], [String vUnits] | |
zoom | Object aZoomObject |
-
-
-
-
appendSpectrum (NMRSpectrum aNMRSpectrum)
-
-
See also: Mutiplet.uuid
-
See also: Peak.id
-
-
-
-
checkPeakVisibility (Peaks aPeak) : Boolean
-
-
-
-
Valid values: {"horizontal", "vertical"}
-
See also: getInnerTracePoints
See also: fidReal, fidSetImag
See also: fidReal, fidSetImag
See also: fidImag, fidSetReal
See also: fidImag, fidSetReal
See also: fidImag, fidSetReal
fidSetImag (Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue) : Boolean
See also: fidImag, fidSetReal
See also: fidReal, fidSetImag
fidSetReal (Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue) : Boolean
See also: fidReal, fidSetImag
-
-
See also: paramNames, setParam
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
-
integrals () : Integrals
-
-
-
-
-
-
-
-
multiplets () : Multiplets
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
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(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)
-
See also: Integral.calculationParams
-
See also: Integral.id
-
See also: Multiplet.calculationParams
-
See also: Mutiplet.uuid
reference (Number aDim, Number aOldShift, Number aNewShift, Boolean aAutoTune, Number aAutoTuneTolerance, String aAnnotation, Boolean aAutoTuneAbsolute)
-
-
-
-
-
-
-
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();
}
-
-
-
-
setImag (Number | String | Object aRow, Number | String | Object aCol, Number | Array aValue) : Boolean
setMultiplets (Multiplets aMultipletList)
-
See also: getParam, paramNames
setPeaks (Peaks aPeakList)
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, [Number aId])
-
-
-
-
-
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));
}
-
-
NMRTDFormCheck ()
Name | Output | Parameters |
---|---|---|
calculateMixtureRate | Object | NMRSpectrum aNMRItem, Object aCalibResultA, Object aCalibResultB |
calibrateRelaxRate | Object | NMRSpectrum aNMRItem, [Number aNormFactor] |
calculateMixtureRate (NMRSpectrum aNMRItem, Object aCalibResultA, Object aCalibResultB) : Object
-
-
calibrateRelaxRate (NMRSpectrum aNMRItem, [Number aNormFactor]) : Object
-
Name | Type | Comments |
---|---|---|
badWater | Boolean | |
expectedSamplePurity | String | |
integralsValueError | Number | |
known1HImpurities | Array | |
predErrorFactor13C | Number | |
predErrorFactor1H | Number |
Valid values: {"High", "Low", "Normal"}
Valid values: {Acetone, Acetone-d5, CDCl3, DMSO, DMSO-d6, EtOH, IPA, MeOH, MeOH-d4}
Name | Type | Comments |
---|---|---|
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] |
Name | Output | Parameters |
---|---|---|
createObjectFromFile | PageItem | String aPath |
toString | String |
-
Name | Type | Comments |
---|---|---|
auditTrail | AuditTrailItem | |
bottom | Number | [read-only] |
height | Number | [read-only] |
items | Array | [read-only] |
left | Number | [read-only] |
margins | Object | [read-only] |
notes | String | |
right | Number | [read-only] |
title | String | |
top | Number | [read-only] |
uuid | String | [read-only] |
width | Number | [read-only] |
auditTrail : AuditTrailItem
function pageMarginsTest()
{
var page = mainWindow.activeDocument.curPage();
var margs = page.margins;
print(margs.top);
print(margs.bottom);
print(margs.left);
print(margs.right);
}
Page (Page aPage)
Name | Output | Parameters |
---|---|---|
addItem | PageItem aPageItem | |
cloneItems | Array | Array aPageItems |
deleteItems | PageItem | Array aPageItems | |
deleteItems | PageItem | Array aPageItems | |
guiCoordToScriptCoord | Object | Number aGuiX, Number aGuiY, Number aGuiWidth, Number aGuiHeight |
item | Number aIndex, String aType | |
item | Number aIndex | |
itemCount | Number | String aType |
itemCount | Number | |
itemsByName | Array | String aType1, ..., String aTypeN |
scriptCoordToGuiCoord | Object | Number aScriptLeft, Number aScriptTop, Number aScriptWidth, Number aScriptHeight |
toPixmap | Pixmap | Number aDpi |
toString | String | |
update |
addItem (PageItem aPageItem)
-
-
-
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 );
}
-
-
-
Valid values: {"Arrow", "CurvedArrow", "Ellipse", "Graph", "Image", "Layout Template", "Mass Spectrum", "Molecule", "NMR Spectrum", "OLE Object", "Polygon", "Rectangle", "Text"}
var specItems = itemsByName('NMR Spectrum', 'Mass Spectrum');
scriptCoordToGuiCoord (Number aScriptLeft, Number aScriptTop, Number aScriptWidth, Number aScriptHeight) : Object
toPixmap (Number aDpi) : Pixmap
Name | Type | Comments |
---|---|---|
angle | Number | |
bottom | Number | |
children | Array | [read-only] |
color | String | |
dataId | String | [read-only] |
height | Number | |
left | Number | |
lineColor | String | |
lineStyle | Number | |
linkId | String | [read-only] |
name | String | [read-only] |
opacity | Number | |
originalFileName | String | [read-only] |
page | Page | [read-only] |
parentUuid | String | [read-only] |
right | Number | |
subtype | String | |
top | Number | |
type | String | |
uuid | String | [read-only] |
width | Number |
Valid values: {0 - No line, 1 - Solid line, 2 - Dash line, 3 - Dot line, 4 - Dash dot line, 5 - Dash dot dot line}
Valid values: {"Arrow", "CurvedArrow", "Ellipse", "Graph", "Image", "Layout Template", "Mass Spectrum", "Molecule", "NMR Spectrum", "OLE Object", "Polygon", "Rectangle", "Text"}
PageItem (PageItem aPageItem)
Name | Output | Parameters |
---|---|---|
addChild | PageItem | Array aPageItems | |
PageItem | Array aPageItems | ||
clearMetaData | Boolean aHidded = false | |
getBrush | Object | |
getLinkedItems | Array | String aRole |
getMetaData | Object | String aName, Boolean aHidded = false |
getPen | Object | |
hasMetaData | Boolean | String aName, Boolean aHidded = false |
linkItems | String aRole, PageItem | Array aPageItems | |
remove | ||
removeChild | PageItem | Array aPageItems | |
removeMetaData | String aName, Boolean aHidded = false | |
setBrush | Object aBrush | |
setChildType | PageItem aPageItem, String aType | |
setMetaData | String aName, Object aValue, Boolean aHidded = false | |
setPen | Object aPen | |
toPixmap | Pixmap | Number aDpi |
toString | String | |
translate | Number aXShift, Number aYShift | |
unlinkAllItems | String aRole | |
unlinkItems | String aRole, PageItem | Array aPageItems | |
update |
-
-
See also: getMetaData, hasMetaData, removeMetaData, setMetaData
-
Valid values: {"assignments", "predictions"}
See also: unlinkAllItems, unlinkItems, unlinkItems
See also: clearMetaData, hasMetaData, removeMetaData, setMetaData
See also: clearMetaData, getMetaData, removeMetaData, setMetaData
-
Valid values: {"Assignments", "DataAnalysis", "Predictions11B", "Predictions13C", "Predictions15N", "Predictions17O", "Predictions19F", "Predictions1H", "Predictions29Si", "Predictions31P", "PredictionsCompare", "PredictionsHighlight", "SpinSimulation", "Verification"}
-
See also: getLinkedItems, unlinkAllItems, unlinkItems
-
See also: clearMetaData, getMetaData, hasMetaData, setMetaData
-
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
-
-
Valid values: {"Auto", "Canvas"}
See also: clearMetaData, getMetaData, hasMetaData, removeMetaData
-
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
-
Valid values: {"assignments", "predictions", "predictions11B", "predictions13C", "predictions15N", "predictions17O", "predictions19F", "predictions1H", "predictions29Si", "predictions31P"}
See also: getLinkedItems, linkItems, unlinkItems
-
Valid values: {"assignments", "predictions", "predictions11B", "predictions13C", "predictions15N", "predictions17O", "predictions19F", "predictions1H", "predictions29Si", "predictions31P"}
-
See also: getLinkedItems, linkItems, unlinkAllItems
Name | Type | Values |
---|---|---|
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 |
Name | Type | Comments |
---|---|---|
annotation | String | |
compoundId | String | |
flags | Peak.Flags | |
id | String | [read-only] |
integral | Number | [read-only] |
intensity | Number | [read-only] |
kind | Peak.Kinds | |
kurtosis | Number | [read-only] |
mode | Peak.Modes | |
modeOptions | Object | |
type | Peak.Types |
flags : Peak.Flags
See also: Peak.integralInPts
kind : Peak.Kinds
mode : Peak.Modes
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)
Name | Output | Parameters |
---|---|---|
compoundLabel | String | String aSpecSolvent |
delta | Number aDim | |
delta | Number | |
integralInPts | Number | NMRSpectrum aSpec |
setFlag | Peak.Flags aFlag, Boolean aEnable | |
toString | String | |
width | Number aDim | |
width | Number |
-
See also: NMRSpectrum.solvent
-
integralInPts (NMRSpectrum aSpec) : Number
-
setFlag (Peak.Flags aFlag, Boolean aEnable)
-
-
-
Name | Type | Comments |
---|---|---|
count | Number |
Peaks ()
Peaks (Peaks aPeakList)
-
Peaks (NMRSpectrum aSpectrum, SpectrumRegion aRegion)
Name | Output | Parameters |
---|---|---|
append | Peak aPeak | |
at | Peak | Number aDim |
byId | Peak | String aPeakId |
clear | Number aIndex | |
indexOf | Number | String aPeakId |
removeAt | Number aIndex | |
sort | Boolean bAscending | |
sort | Boolean bHAscending, Boolean bVAscending | |
toString | String |
at (Number aDim) : Peak
byId (String aPeakId) : Peak
See also: Peak.id
PeakTable (PeakTable aPeakTable)
Name | Output | Parameters |
---|---|---|
spectrum | NMRSpectrum | |
toString | String |
spectrum () : NMRSpectrum
Name | Type | Comments |
---|---|---|
propertyNames | Array |
PhysChemPlugin (PhysChemPlugin aPhysChemPlugin)
Name | Output | Parameters |
---|---|---|
calculate | Array | Array aMolItems |
calculate (Array aMolItems) : Array
-
{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} }
}
Name | Type | Values |
---|---|---|
AspectRatioMode | Number | IgnoreAspectRatio, KeepAspectRatio, KeepAspectRatioByExpanding |
TransformationMode | Number | FastTransformation, SmoothTransformation |
Name | Type | Comments |
---|---|---|
height | Number | |
isNull | Boolean | |
width | Number |
Pixmap (String aPath, String aFormat, Number aImageConversionFlags)
-
-
Pixmap ( aCopyPixmap)
Name | Output | Parameters |
---|---|---|
fill | String aColor | |
load | Boolean | String aPath, String aFormat, Number aImageConversionFlags |
loadFromData | Boolean | String aData, String aFormat, Number aImageConversionFlags |
rotated | Pixmap | Number aAngleDegrees, TransformationMode aTransform |
save | Boolean | String aPath, String aFormat, Number aQuality |
scaled | Pixmap | Number aWidth, Number aHeight, AspectRatioMode aAspectRatio, TransformationMode aTransform |
scaledToHeight | Pixmap | Number aHeight, TransformationMode aTransform |
scaledToWidth | Pixmap | Number aWidth, TransformationMode aTransform |
toByteArray | ByteArray | String aFormat, Number aQuality |
-
scaled (Number aWidth, Number aHeight, AspectRatioMode aAspectRatio, TransformationMode aTransform) : Pixmap
toByteArray (String aFormat, Number aQuality) : ByteArray
Name | Type | Comments |
---|---|---|
color | String | |
font | Font | |
horizontal | PlotAxisProps | |
lineWidth | Number | |
margin | Number | |
vertical | PlotAxisProps |
Valid values: {"#RRGGBB", "Color Keywords"}
horizontal : PlotAxisProps
vertical : PlotAxisProps
Name | Type | Comments |
---|---|---|
color | String | |
style | String | |
width | Number |
Valid values: {"#RRGGBB", "Color Keywords"}
Valid values: {"circles", "crosses", "line"}
Name | Type | Comments |
---|---|---|
text | String | |
visible | Boolean |
Name | Type | Comments |
---|---|---|
decimals | Number | |
label | PlotAxisLabelProps | |
manualTics | Boolean | |
minWidth | Number | |
primaryTics | Number | |
secondaryTics | Number | |
visible | Boolean |
label : PlotAxisLabelProps
Name | Type | Comments |
---|---|---|
color | String | |
opacity | Number |
Valid values: {"#RRGGBB", "Color Keywords"}
Name | Type | Comments |
---|---|---|
decimals | Number | |
value | String | |
visible | Boolean |
Valid values: {"abundance", "area", "height", "intensity", "precursor", "scan"}
Name | Type | Comments |
---|---|---|
baseline | Boolean | |
color | String | |
customLabel | Boolean | |
decimals | Number | |
exclusionRegions | Boolean | |
fill | Boolean | |
font | Font | |
secondline | PlotChromPeak2ndLineProps | |
threshold | Number | |
vertBounds | Boolean | |
visible | Boolean | |
wedges | Boolean |
Valid values: {"#RRGGBB", "Color Keywords"}
secondline : PlotChromPeak2ndLineProps
Name | Type | Comments |
---|---|---|
color | String | |
lineWidth | Number | |
showBaseline | Boolean | |
showFrame | Boolean | |
showHorizontal | Boolean | |
showOver | Boolean | |
showVertical | Boolean |
Valid values: {"#RRGGBB", "Color Keywords"}
Name | Type | Comments |
---|---|---|
relativeMasses | Boolean | |
relativeMassPivot | Number |
Name | Type | Comments |
---|---|---|
categoryLabels | String | |
label | PlotAxisLabelProps | |
minWidth | Number | |
visible | Boolean |
Valid values: {"Categories", "Numbers"}
label : PlotAxisLabelProps
Name | Type | Comments |
---|---|---|
color | String | |
decimals | Number | |
font | Font | |
format | String | |
visible | Boolean |
Valid values: {"#RRGGBB", "Color Keywords"}
Polygon (Polygon aPolygonItem)
Name | Output | Parameters |
---|---|---|
toString | String |
Name | Type | Values |
---|---|---|
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 |
Name | Type | Comments |
---|---|---|
orientation | Orientation | |
paperSize | PaperSize |
Printer (PrinterMode aMode = ScreenResolution)
Name | Output | Parameters |
---|---|---|
begin | String aFileName = ' ' | |
end | ||
newPage | ||
Page aPage | ||
Document aDocument | ||
TextDocument aTextDocument |
-
Name | Type | Comments |
---|---|---|
allErrorOutput | String | |
allStdOutput | String | |
canReadLine | Boolean | |
errorCode | Number | |
exitCode | Number | |
exitStatus | Number | |
processId | Number | [read-only] |
readLine | String | |
state | Number | |
workingDirectory | String |
See also: QProcess::canReadLine, readLine
Valid values: {Process.Crashed, Process.FailedToStart, Process.ReadError, Process.Timedout, Process.UnknownError, Process.WriteError}
Valid values: {Process.CrashExit, Process.NormalExit}
See also: canReadLine, QIODevice::readLine
Valid values: {Process.NotRunning, Process.Running, Process.Starting}
Process ()
Name | Output | Parameters |
---|---|---|
execute | Number | String aProgram, Array aArguments |
start | String aProgram, Array aArguments | |
startDetached | Boolean | String aProgram, Array aArguments |
systemEnvironment | Array | |
systemEnvironmentObject | Object | |
waitForFinished | Boolean | Number aMSec |
waitForStarted | Boolean | Number aMSec |
Name | Type | Comments |
---|---|---|
labelText | String | |
maximum | Number | |
minimum | Number | |
minimumDuration | Number | |
showCancelButton | Boolean | |
value | Number | |
wasCanceled | Boolean |
Name | Type | Comments |
---|---|---|
checkable | Boolean | |
checked | Boolean | |
text | String |
Name | Output | Parameters |
---|---|---|
setIcon | String aFilePath | |
setIcon | String aFilePath, Number aWidth, Number aHeight | |
setIconColoredSquare | String aColor | |
setIconPixmap | Pixmap aPixmap | |
toggle |
dialog.widgets.theButton.setIcon("ricares:lightbringer.png");
dialog.widgets.theButton.setIcon("ricares:lightbringer.png", 64, 64);
-
Rectangle (Rectangle aRectItem)
Name | Output | Parameters |
---|---|---|
toString | String |
Name | Type | Values |
---|---|---|
MarkerShape | Number | MarkerShapeCircle, MarkerShapeRectangle |
Name | Type | Comments |
---|---|---|
borderColor | String | |
borderWidth | Number | |
color | String | |
markerShape | MarkerShape | |
markerSize | Number | |
name | String |
ScatterSeries ()
Name | Output | Parameters |
---|---|---|
append | aValueX, aValueY | |
attachAxis | aAxis |
-
See also: QAbstractSeries::attachAxis
Name | Type | Comments |
---|---|---|
fileHistory | Boolean |
Name | Output | Parameters |
---|---|---|
importFile | Boolean | String|Array aPath, String aFileFilter, Document aDocument = undefined |
metaData | Object | String aFileName, String aFormat = undefined, Array aExtraData |
open | Boolean | String aFileName, String aFilter = undefined |
open | Array aFileNameList | |
openFilters | String | |
save | String aFileName, String aFilter | |
saveFilters | String |
-
-
-
-
-
-
Settings (String aPrefix = "Scripts/Settings/")
Settings (String aOrganization, String aApplicationName)
Name | Output | Parameters |
---|---|---|
allKeys | Array | |
beginGroup | aGroupName | |
childGroups | Array | |
childKeys | Array | |
endGroup | aGroupName | |
getObject | Object | String aKey, Object aDefaultValue |
group | String | |
remove | String aKey | |
save | String aFilename, String aGroup = | |
setObject | String aKey, Object aObject, Object aDefaultObject | |
setValue | String aKey, Variant aValue | |
toString | String | |
value | Variant | String aKey, Variant aDefaultValue |
-
-
function readObject() {
var testObj = settings.getObject("DummyKey", {});
print(JSON.stringify(testObj));
}
-
-
-
-
function writeObject() {
var testObj = {
"Key1": "Value1",
"Key2": "Value2"
};
settings.setObject("DummyKey", testObj);
}
function writeObjectDefault() {
var testObj = {
"Key1": "Value11",
"Key2": "Value12",
"NoNeededKey": "DummyValue"
}, defaultObj = {
"Key1": "Old1",
"Key2": "Old2"
};
settings.setObject("DummyKey", testObj, defaultObj);
}
-
-
-
-
SpectrumRegion (SpectrumRegion aSpectrumRegion)
SpectrumRegion (Number aFrom, Number aTo)
SpectrumRegion (Number aFrom1, Number aTo1, Number aFrom2, Number aTo2)
Name | Output | Parameters |
---|---|---|
dim | Number | |
from | Number | Number aDim |
to | Number | Number aDim |
toString | String |
Name | Type | Comments |
---|---|---|
enabled | Boolean | |
maximum | Number | |
minimum | Number | |
prefix | String | |
singleStep | Number | |
suffix | String | |
value | Number |
SpinBox ()
Name | Type | Comments |
---|---|---|
connectionName | String | [read-only] |
databaseName | String | |
driverName | String | [read-only] |
hostName | String | |
password | String | |
port | String | |
userName | String |
SqlDatabase (String aConnectionName, String aDriverName)
-
-
Valid values: {"QDB2", "QIBASE", "QMYSQL", "QOCI", "QODBC", "QPSQL", "QSQLITE", "QSQLITE2"}
Name | Output | Parameters |
---|---|---|
close | ||
connectionNames | Array | |
contains | Bool | String aConnectionName |
drivers | Array | |
exec | SqlQuery | String aQuery |
isDriverAvailable | Bool | String aDriver |
isOpen | Bool | |
isValid | Bool | |
lastError | SqlError | |
open | Bool | |
removeDatabase | String aConnectionName | |
tables | Array |
var sqliteDatabase = new SqlDatabase("myDatabaseId", "QSQLITE");
sqliteDatabase.databaseName = "C:/dev/test-database.db";
if (!sqliteDatabase.isValid()) {
MessageBox.critical("Driver is not valid");
return;
}
print(sqliteDatabase.open());
SqlError ()
Name | Output | Parameters |
---|---|---|
databaseText | String | |
driverText | String | |
isValid | Bool | |
nativeErrorCode | String | |
text | String | |
type | Number |
SqlQuery (String aConnectionName)
-
Name | Output | Parameters |
---|---|---|
bindValue | String aPlaceholder, Variant aVariant | |
boundValue | Variant | String aPlaceholder |
clear | ||
exec | Bool | String aSqlQuery |
exec | Bool | |
first | Bool | |
isActive | Bool | |
isSelect | Bool | |
last | Bool | |
lastError | SqlError | |
next | Bool | |
prepare | Bool | String aQuery |
seek | Bool | Number aIndex, Bool aRelative |
setForwardOnly | Bool aForward | |
size | Number | |
value | String | Number aIndex |
var sqliteQuerySelect = new SqlQuery(databaseID);
sqliteQuerySelect.prepare("SELECT Species FROM Animalia");
sqliteQuerySelect.exec();
while (sqliteQuerySelect.next()) {
print(sqliteQuerySelect.value(0));
}
Name | Type | Comments |
---|---|---|
color | String | |
mode | String | |
name | String |
Valid values: {"Gradient", "Hue", "Single"}
StackedClass ()
var stackedClass = new StackedClass(); // class with default values
var stackedClass = new StackedClass("myclass", "Gradient", "#00ffff");
Name | Type | Comments |
---|---|---|
classes | Object | [read-only] |
Name | Output | Parameters |
---|---|---|
getClass | Object | String aName |
getClass | Object | Integer aIndex |
setClass | String aName, Object aProperties | |
setClass | Integer aIndex, Object aProperties |
-
-
var spec = new NMRSpectrum(nmr.activeSpectrum());
var stackedClasses = spec.getProperty("stacked.classes");
var newClass = new StackedClass("C", "Gradient", "#00ffff");
stackedClasses.setClass("A", newClass);
-
-
var spec = new NMRSpectrum(nmr.activeSpectrum());
var stackedClasses = spec.getProperty("stacked.classes");
var newClass = new StackedClass("C", "Gradient", "#00ffff");
stackedClasses.setClass(0, newClass);
Name | Type | Comments |
---|---|---|
header | String | |
items | Object |
SvgRenderer (ByteArray aByteArray)
-
Name | Output | Parameters |
---|---|---|
renderToPixmap | Pixmap | Number aWidth, Number aHeight |
Name | Type | Values |
---|---|---|
MacVer | Number | Leopard, Lion, MountainLion, SnowLeopard, Tiger |
WinVer | Number | W2000, W2003, W7, W8, WVISTA, WXP |
Name | Type | Comments |
---|---|---|
hostID | String | |
isLinux | Boolean | |
isMac | Boolean | |
isWin | Boolean | |
machineHostName | String | |
macVersion | Number | [read-only] |
userName | String | |
windowsVersion | 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.
Returns one of the Windows version enumeration values
NOTE: The Windows version enumeration and this property are only defined in Windows machines.
Name | Type | Comments |
---|---|---|
currentColumn | Number | |
currentItem | Object | |
currentRow | Number | |
horzHeader | Object | |
horzHeaderItems | Object | |
items | Object | |
vertHeader | Object | |
vertHeaderItems | Object |
See also: QTableWidget::horizontalHeader
See also: QTableWidget::verticalHeader
Name | Output | Parameters |
---|---|---|
item | Object | Number aRow, Number aColumn |
select | Array items | |
selectedItems | Array | |
setCurrentCell | Number aRow, Number aColumn | |
setCurrentItem | Object aItem | |
setItem | Number aRow, Number aColumn, Object aItem | |
sortByColumnWithOrder | Number aColumn, Number aOrder |
Name | Type | Comments |
---|---|---|
currentIndex | Number |
Name | Output | Parameters |
---|---|---|
addTab | Widget aWidget, String aTitle | |
removeTab | Number aIndex | |
setTabText | Number aIndex, String aTitle | |
tabText | String | Number aIndex |
Name | Type | Comments |
---|---|---|
autoSized | Boolean | |
htmlText | String | |
plainText | String |
Text (Text aTextItem)
Name | Output | Parameters |
---|---|---|
toString | String |
TextDocument ()
TextDocument (Widget aTextEditWidget)
Name | Output | Parameters |
---|---|---|
addResourcePixmap | String aUrl, String | Pixmap aPixmap | |
addResourceStyleSheet | String aUrl, String aCSS | |
setHtml | String aHtml | |
setPlainText | String aText | |
toHtml | String | |
toPlainText | String | |
write | String aFilePath |
See also: OASIS Open Document Format Standard
TextOdfDocument ()
Name | Output | Parameters |
---|---|---|
addHeading | String aTitle, int aLevel, String aStyle | |
addHorizontalLine | String aLeftPos, String aRightPos, String aStyle | |
addHtml | String aHtml | |
addPageBreak | ||
addPlainText | String aPlainText | |
addResource | String aResourceName | |
addStyles | String aStyles | |
addStylesFromFile | String aFileName | |
insertTableOfContents | String aTitle, int aMaxLevel, String aStylePrefix, Bool aUseCurrentPos = false | |
setStyle | String aStyleName | |
startDocument | String aFileName | |
write |
See also: Supported HTML subset
insertTableOfContents (String aTitle, int aMaxLevel, String aStylePrefix, Bool aUseCurrentPos = false)
// Start an ODF document
var doc = new TextOdfDocument();
doc.startDocument("out.odt");
// Add styles (styles are saved as styles.xml file in the ODF zip)
doc.addStylesFromFile("myStyles.xml");
// Add resources (images used inside the document, i.e. pictures, logos in headers, etc.)
doc.addResource("logo_mestre.png");
doc.addResource("spectrum_1D.png");
// Set master-page style (i.e. header, footer, page orientation).
// The style has to be defined in "styles.xml"
doc.setStyle("MPPortrait");
// Insert table of contents with title "Table of Contents", maximum index level = 6,
// and prefix "TOC" used by its style elements in styles.xml
doc.insertTableOfContents("Table of Contents", 6, "TOC");
// Add page break
doc.addPageBreak();
// Add heading of level 1
doc.addHeading("NMR Spectra", 1, "Heading1");
// Add a horizontal straight line with the style thick and solid blue line defined in styles.xml.
doc.addHorizontalLine("0in", "5.9056in", "ThickSolidBlue");
// Add plain text content
doc.addPlainText("NMR spectroscopy is a spectroscopic technique to observe local magnetic fields around atomic nuclei.");
// Change style (i.e. landscape orientation)
doc.setstyle("MPLandscape");
// Add html content
doc.addHtml(<![CDATA["<p align="center"><img src="media/spectrum_1D.png" width="702" height="490"/><br><b>Figure 1:</b>1D spectrum</p>"]]>);
// Write document
doc.write();
Name | Type | Comments |
---|---|---|
codec | String | |
notation | Number | |
pos | Number | |
precision | Number |
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
Valid values: {TextStream.nFixed, TextStream.nScientific, TextStream.nSmart}
TextStream (File aIODevice)
TextStream (TextStream aStream)
Name | Output | Parameters |
---|---|---|
atEnd | Boolean | |
flush | ||
read | String | Number aMaxLen |
readAll | String | |
readLine | String | |
readNumber | Number | |
readString | String | |
skip | Number aSize | |
skipWhiteSpace | ||
toString | String | |
write | Boolean | Variant aParam1, ..., Variant aParamN |
writeln | Boolean | Variant aParam1, ..., Variant aParamN |
Name | Type | Comments |
---|---|---|
singleShot | Boolean |
Timer ()
Name | Output | Parameters |
---|---|---|
start | Number aTimeMS |
Name | Type | Comments |
---|---|---|
toggleViewAction | Action | [read-only] |
toggleViewAction : Action [read-only]
ToolBar ([Widget aParent])
-
Name | Output | Parameters |
---|---|---|
addAction | Action | String aActionName, String aIconPath |
addAction | Action aAction | |
addSeparator | ||
addWidget | Action | Widget aWidget |
insertAction | Action aBeforeAction, Action aAction | |
insertWidget | Action | Action aBeforeAction, Widget aWidget |
removeAction | Action aAction |
-
-
-
-
-
-
-
-
-
Name | Type | Values |
---|---|---|
PopupMode | Number | DelayedPopup, InstantPopup, MenuButtonPopup |
Name | Type | Comments |
---|---|---|
autoRaise | Boolean | |
checkable | Boolean | |
checked | Boolean | |
popupMode | PopupMode | |
text | String | |
toolButtonStyle | Number |
dialog.widgets.tbMenu.popupMode = ToolButton.InstantPopup;
Name | Output | Parameters |
---|---|---|
setDefaultAction | Action aAction | |
setIcon | String aFilePath | |
setIcon | String aFilePath, Number aWidth, Number aHeight | |
setIconColoredSquare | String aColor | |
setIconPixmap | Pixmap aPixmap | |
setMenu | Menu aMenu | |
toggle |
var mnovaAction = mainWindow.getAction("nmrPeakPickingOptions");
dialog.widgets.tbMnovaAction.setDefaultAction(mnovaAction);
dialog.widgets.theButton.setIcon("ricares:lightbringer.png");
dialog.widgets.theButton.setIcon("ricares:lightbringer.png", 64, 64);
-
var menu = new Menu();
menu.addAction("Left arrow icon", "ricares:arrow-left.png");
dialog.widgets.tbMenu.setMenu(menu);
Name | Output | Parameters |
---|---|---|
setModel | StandardItemModel aModel |
/* load the UI (it should contain a widget of type TreeView called treeView) */
var treeViewDialog = Application.loadUiFile("ricares:treeViewTest.ui");
/* create a new StandardItemModel object */
var mySim = new StandardItemModel();
/* define the main (0 and 1) branches and their children */
var myObject000 = {text: "I am 000", flags: 33, children: []};
var myObject00 = {text: "I am 00", flags: 33, children: [myObject000]};
var myObject01 = {text: "I am 01", flags: 33, children: []};
var myObject0 = {text: "I am 0", flags: 33, children: [myObject00, myObject01]};
var myObject1 = {text: "I am 1", flags: 33, children: []};
/* populate the StandardItemModel */
mySim.items = [myObject0, myObject1];
/* get the info from the StandardItemModel */
var myItems = mySim.items;
/* overwrite the information of branch 0 (it will not overwrite its children) */
myItems[0].text = "I am 0 (overwritten)";
/* populate the StandardItemModel again with the updated info */
mySim.items = myItems;
/* define the header of the StandardItemModel */
mySim.header = "This is my tree";
/* load the model into the TreeView */
treeViewDialog.widgets.treeView.setModel(mySim);
Name | Type | Values |
---|---|---|
UnZipFlags | Number | Default, SkipPaths |
UnZip (String aPath)
Name | Output | Parameters |
---|---|---|
close | ||
contents | Array | Boolean aOnlyFiles |
extract | Number | String aOutPath, UnZipFlags aUnZipFlags = Default |
getFirstFile | String | |
open | Number |
Name | Type | Comments |
---|---|---|
labelFormat | String | |
max | Number | |
min | Number | |
minorTickCount | Number | |
tickCount | Number | |
titleText | String |
ValueAxis ()
Name | Output | Parameters |
---|---|---|
applyNiceNumbers |
var axisX = new ValueAxis();
axisX.tickCount = 4;
axisX.minorTickCount = 3;
axisX.min = 0;
axisX.max = 10;
axisX.titleText = "My Axis";
axisX.labelFormat = "d";
chart.addAxis(axisX, Chart.AlignBottom);
Name | Type | Values |
---|---|---|
Tests | Number | C13ASSIGN, C13GC, C13NN, C13PBM, C13SQ, COSYASSIGN, COSYGC, COSYSQ, H1APS, H1ASSIGN, H1GC, H1MC, H1NN, H1PBM, H1PBM_L, H1SQ, HMBCASSIGN, HMBCGC, HMBCSQ, HSQC_XCOR, HSQCASSIGN, HSQCGC, HSQCSQ, ML, MS_MolMatch, MS_MolMatch_Purity, MS_MolMatch_Screening, MS_MolMatch_Similarity, NOESYASSIGN, NOESYGC, NOESYSQ, TOCSYASSIGN, TOCSYGC, TOCSYSQ |
Name | Type | Comments |
---|---|---|
beginDate | Date | [read-only] |
id | Number | [read-only] |
messages | Array | [read-only] |
priorConfidence | Number | [read-only] |
quality | Number | [read-only] |
Number | [read-only] [deprecated] | |
score | Number | [read-only] |
significance | Number | [read-only] |
testsResults | Array | [read-only] |
See also: ASVWarning
See also: VerificationTestResult
Name | Output | Parameters |
---|---|---|
testResult | VerificationTestResult | Number aTestType |
testResult (Number aTestType) : VerificationTestResult
-
See also: VerificationTestResult
Name | Type | Comments |
---|---|---|
extData | Object | [read-only] |
id | Number | [read-only] |
name | String | [read-only] |
quality | Number | [read-only] |
Number | [read-only] [deprecated] | |
score | Number | [read-only] |
significance | Number | [read-only] |
Wizard ()
Name | Output | Parameters |
---|---|---|
setButtonText | Number aButton, String aText |
-
Valid values: {CustomButton1, CustomButton2, CustomButton3}
-
XmlQuery (Number aQueryLanguage)
-
Valid values: {QXmlQuery.XSLT20, XmlQuery.XQuery10}
Name | Output | Parameters |
---|---|---|
bindVariable | String aName, Variant aValue | |
evaluate | String | |
setFocus | String aDocContents | |
setQuery | String aQuery |
Name | Output | Parameters |
---|---|---|
parseXmlFile | Object | String aFilePath |
-
var json = XmlToJson.parseXmlFile("C:/dev/tmp/xml-to-json/quantificationMethod.xml");
Name | Type | Values |
---|---|---|
ZipFlags | Number | Default, SkipPaths |
Zip (String aPath, String aBasepath = '')
Name | Output | Parameters |
---|---|---|
addFile | Number | String aFilePath, String aZipPath = '', ZipFlags aZipFlags = Default |
close | ||
contents | Array | Boolean aOnlyFiles |
open | Number | Boolean aAppend |