@@ -1327,102 +1327,102 @@ popupGui <- function(dev){
1327
1327
}
1328
1328
1329
1329
# Displays the digestR splash screen
1330
- # splashScreen <- function(){
1330
+ splashScreen <- function(){
1331
1331
1332
- # par(mar=defaultSettings$mar, cex.axis=defaultSettings$cex.axis,
1333
- # cex.main=defaultSettings$cex.main, bg='black')
1334
- # colMain <- '#b4d0f3'
1335
- # colBack <- '#0065ca'
1336
- # plot(0, 0, type='n', xlab='', ylab='', col.axis='black')
1337
- # # Define your color palette
1338
- # #colMain <- '#FF5733' # A warm main color
1339
- # #colBack <- '#2E86C1' # A contrasting background color
1332
+ par(mar=defaultSettings$mar, cex.axis=defaultSettings$cex.axis,
1333
+ cex.main=defaultSettings$cex.main, bg='black')
1334
+ colMain <- '#b4d0f3'
1335
+ colBack <- '#0065ca'
1336
+ plot(0, 0, type='n', xlab='', ylab='', col.axis='black')
1337
+ # Define your color palette
1338
+ #colMain <- '#FF5733' # A warm main color
1339
+ #colBack <- '#2E86C1' # A contrasting background color
1340
1340
1341
- # # Letter positions and colors
1342
- # letters <- c('D', 'I', 'G', 'E', 'S', 'T', 'R')
1343
- # colors <- c(colMain, colMain, colMain, colMain, colMain, colMain, colBack)
1344
- # cex_values <- c(7, 7, 7, 7, 7, 7, 6.5)
1345
- # offset_values <- c(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.4)
1341
+ # Letter positions and colors
1342
+ letters <- c('D', 'I', 'G', 'E', 'S', 'T', 'R')
1343
+ colors <- c(colMain, colMain, colMain, colMain, colMain, colMain, colBack)
1344
+ cex_values <- c(7, 7, 7, 7, 7, 7, 6.5)
1345
+ offset_values <- c(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.4)
1346
1346
1347
- # # Loop to create and position letters
1348
- # for (i in 1:length(letters)) {
1349
- # text(-0.75 + (i-1)*0.25, 0.2, letters[i], col=colors[i], cex=cex_values[i], pos=3, offset=offset_values[i])
1350
- # }
1347
+ # Loop to create and position letters
1348
+ for (i in 1:length(letters)) {
1349
+ text(-0.75 + (i-1)*0.25, 0.2, letters[i], col=colors[i], cex=cex_values[i], pos=3, offset=offset_values[i])
1350
+ }
1351
1351
1352
- # # Add a decorative 'R' in a different color
1353
- # text(0.70, 0.2, 'R', col='#E74C3C', cex=5.5, pos=3, offset=0.4)
1352
+ # Add a decorative 'R' in a different color
1353
+ text(0.70, 0.2, 'R', col='#E74C3C', cex=5.5, pos=3, offset=0.4)
1354
1354
1355
- # # Other text elements (modify as needed)
1356
- # text(0, 0.08, 'Digestomics Analyzer', col=colMain, cex=2.5, font=1)
1357
- # text(0, -0.15, paste('version 1.0.0', pkgVar$version), col=colMain, font=3)
1358
- # text(0, -0.25, 'gp() - Generate New Proteome', col=colMain)
1359
- # text(0, -0.35, 'pm() - Process Mascot files', col=colMain)
1360
- # text(0, -0.45, 'fo() - Open *.dcf files', col=colMain)
1355
+ # Other text elements (modify as needed)
1356
+ text(0, 0.08, 'Digestomics Analyzer', col=colMain, cex=2.5, font=1)
1357
+ text(0, -0.15, paste('version 1.0.0', pkgVar$version), col=colMain, font=3)
1358
+ text(0, -0.25, 'gp() - Generate New Proteome', col=colMain)
1359
+ text(0, -0.35, 'pm() - Process Mascot files', col=colMain)
1360
+ text(0, -0.45, 'fo() - Open *.dcf files', col=colMain)
1361
1361
1362
- # # Force the graphics device to refresh
1363
- # dev.flush()
1364
- # }
1362
+ # Force the graphics device to refresh
1363
+ dev.flush()
1364
+ }
1365
1365
1366
- # Displays the digestR splash screen
1367
- splashScreen <- function(){
1366
+ # # Displays the digestR splash screen
1367
+ # splashScreen <- function(){
1368
1368
1369
- library(png)
1370
- par(mar=defaultSettings$mar, cex.axis=defaultSettings$cex.axis,
1371
- cex.main=defaultSettings$cex.main, bg='black')
1372
- colMain <- '#b4d0f3'
1373
- colBack <- '#0065ca'
1374
- plot(0, 0, type='n', xlab='', ylab='', col.axis='black')
1369
+ # library(png)
1370
+ # par(mar=defaultSettings$mar, cex.axis=defaultSettings$cex.axis,
1371
+ # cex.main=defaultSettings$cex.main, bg='black')
1372
+ # colMain <- '#b4d0f3'
1373
+ # colBack <- '#0065ca'
1374
+ # plot(0, 0, type='n', xlab='', ylab='', col.axis='black')
1375
1375
1376
- # Load the image and get its dimensions
1377
- img_path <- system.file("extdata", "DigestRpicture.png", package = "digestR")
1378
- img <- readPNG(img_path)
1376
+ # # Load the image and get its dimensions
1377
+ # img_path <- system.file("extdata", "DigestRpicture.png", package = "digestR")
1378
+ # img <- readPNG(img_path)
1379
1379
1380
- xlim <- c(-1.5, 1.5) # Adjust the x-axis limits as needed
1381
- ylim <- c(-1.5, 1.5) # Adjust the y-axis limits as needed
1380
+ # xlim <- c(-1.5, 1.5) # Adjust the x-axis limits as needed
1381
+ # ylim <- c(-1.5, 1.5) # Adjust the y-axis limits as needed
1382
1382
1383
- # Create plot with no margins and appropriate limits
1384
- par(mar=c(0,0,0,0), bg='#0d0d0d')
1385
- plot(0, 0, type='n', xlab='', ylab='', axes=FALSE, xlim=xlim, ylim=ylim)
1383
+ # # Create plot with no margins and appropriate limits
1384
+ # par(mar=c(0,0,0,0), bg='#0d0d0d')
1385
+ # plot(0, 0, type='n', xlab='', ylab='', axes=FALSE, xlim=xlim, ylim=ylim)
1386
1386
1387
- # Display the image, stretched to fit the plot region
1388
- rasterImage(img, xlim[1], ylim[1], xlim[2], ylim[2])
1387
+ # # Display the image, stretched to fit the plot region
1388
+ # rasterImage(img, xlim[1], ylim[1], xlim[2], ylim[2])
1389
1389
1390
- # Letter positions and modern color scheme for "PANDAS"
1391
- letters <- c('P', 'A', 'N', 'D', 'A', 'S')
1392
- x_positions <- c(-0.9, -0.6, -0.3, 0.0, 0.3, 0.6) # Custom X positions for each letter
1393
- y_positions <- c(0.62, 0.62, 0.62, 0.62, 0.62, 0.62) # Use different y positions as needed
1394
- colors <- rep('#4da6ff', 6) #
1395
- cex_values <- rep(5, 6) # Reduced font size for smaller splash screen
1390
+ # # Letter positions and modern color scheme for "PANDAS"
1391
+ # letters <- c('P', 'A', 'N', 'D', 'A', 'S')
1392
+ # x_positions <- c(-0.9, -0.6, -0.3, 0.0, 0.3, 0.6) # Custom X positions for each letter
1393
+ # y_positions <- c(0.62, 0.62, 0.62, 0.62, 0.62, 0.62) # Use different y positions as needed
1394
+ # colors <- rep('#4da6ff', 6) #
1395
+ # cex_values <- rep(5, 6) # Reduced font size for smaller splash screen
1396
1396
1397
- # Add shadow effect to the letters for depth
1398
- shadow_col <- '#00000050' # Semi-transparent black shadow
1399
- for (i in 1:length(letters)) {
1400
- text(x_positions[i] + 0.02, y_positions[i] - 0.02, letters[i], col=shadow_col, cex=cex_values[i], pos=3)
1401
- text(x_positions[i], y_positions[i], letters[i], col=colors[i], cex=cex_values[i], pos=3)
1402
- }
1397
+ # # Add shadow effect to the letters for depth
1398
+ # shadow_col <- '#00000050' # Semi-transparent black shadow
1399
+ # for (i in 1:length(letters)) {
1400
+ # text(x_positions[i] + 0.02, y_positions[i] - 0.02, letters[i], col=shadow_col, cex=cex_values[i], pos=3)
1401
+ # text(x_positions[i], y_positions[i], letters[i], col=colors[i], cex=cex_values[i], pos=3)
1402
+ # }
1403
1403
1404
- # Add black shadow for the title "Peptide Analyzer of Naturally Digested Amino acid Sequences"
1405
- # Shadow for "Peptide Analyzer of"
1406
- text(0, -0.4, 'Peptide Analyzer of', col='black', cex=1.80, font=2.3) # Black shadow
1407
- # Main text for "Peptide Analyzer of"
1408
- text(0, -0.4, 'Peptide Analyzer of', col='#4da6ff', cex=1.8, font=2) # Main text
1404
+ # # Add black shadow for the title "Peptide Analyzer of Naturally Digested Amino acid Sequences"
1405
+ # # Shadow for "Peptide Analyzer of"
1406
+ # text(0, -0.4, 'Peptide Analyzer of', col='black', cex=1.80, font=2.3) # Black shadow
1407
+ # # Main text for "Peptide Analyzer of"
1408
+ # text(0, -0.4, 'Peptide Analyzer of', col='#4da6ff', cex=1.8, font=2) # Main text
1409
1409
1410
- # Shadow for "Naturally Digested Amino acid sequences"
1411
- text(0, -0.53, 'Naturally Digested Amino acid Sequences', col='black', cex=1.80, font=2.3) # Black shadow
1412
- # Main text for "Naturally Digested Amino acid sequences"
1413
- text(0, -0.53, 'Naturally Digested Amino acid Sequences', col='#4da6ff', cex=1.8, font=2) # Main text
1410
+ # # Shadow for "Naturally Digested Amino acid sequences"
1411
+ # text(0, -0.53, 'Naturally Digested Amino acid Sequences', col='black', cex=1.80, font=2.3) # Black shadow
1412
+ # # Main text for "Naturally Digested Amino acid sequences"
1413
+ # text(0, -0.53, 'Naturally Digested Amino acid Sequences', col='#4da6ff', cex=1.8, font=2) # Main text
1414
1414
1415
- # Version and command text, shifted further downwards
1416
- text(0, -0.75, paste('version 1.0.0', pkgVar$version), col='#00b3b3', font=2) # Dynamic color
1415
+ # # Version and command text, shifted further downwards
1416
+ # text(0, -0.75, paste('version 1.0.0', pkgVar$version), col='#00b3b3', font=2) # Dynamic color
1417
1417
1418
- # Clean, minimal function list with better spacing and shifted downwards
1419
- text(0, -0.86, 'gp() - Generate New Proteome', col='#00b3b3', cex=1.1, font = 2) # Light blue
1420
- text(0, -0.94, 'pm() - Process Mascot files', col='#00b3b3', cex=1.1, font = 2) # Light blue
1421
- text(0, -1.02, 'fo() - Open *.dcf files', col='#00b3b3', cex=1.1, font = 2) # Light blue
1418
+ # # Clean, minimal function list with better spacing and shifted downwards
1419
+ # text(0, -0.86, 'gp() - Generate New Proteome', col='#00b3b3', cex=1.1, font = 2) # Light blue
1420
+ # text(0, -0.94, 'pm() - Process Mascot files', col='#00b3b3', cex=1.1, font = 2) # Light blue
1421
+ # text(0, -1.02, 'fo() - Open *.dcf files', col='#00b3b3', cex=1.1, font = 2) # Light blue
1422
1422
1423
- # Force the graphics device to refresh
1424
- dev.flush()
1425
- }
1423
+ # # Force the graphics device to refresh
1424
+ # dev.flush()
1425
+ # }
1426
1426
1427
1427
##################################################################################
1428
1428
0 commit comments